Skip to content

Commit

Permalink
Rewrite in React (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
threesquared authored Jun 30, 2018
1 parent 8049e62 commit 7f8139b
Show file tree
Hide file tree
Showing 48 changed files with 20,616 additions and 1,511 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

27 changes: 21 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
node_modules
.bower-*/
bower_components
public/css/styles.css
public/js/scripts.js
lambda.zip
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: node_js

node_js:
- 6

cache:
directories:
- node_modules

before_deploy:
- npm run build

deploy:
provider: s3
access_key_id: AKIAI4TBOZIMRB6ADFMA
secret_access_key:
secure: BwJjYi8AV/O5/rX7df1wmiAlnBkHNkpRpdnGjkOOKitQsiaN8q0SfcPKtBbPol383AHVj+aazE++2SR3sOQsDlnmmv+gdIvG8ezHBP12xZ0xD5k2n7d45SBLfa5QJtwJNCCVsTOMaSjs1+wYMjw6HvEqgxpepfHHZ4BAxukD6Ju1qXW+lduI2jcn1aUSrBcLyMdcl08kVUszlj8k/r87Pj/Xgu69O7cc0i8a14QZ8jrtEySLQpQN2wiCvV2dMv+4/2dItJkbMu93Z2dz3mPriuV8LqPi+eyYN6U7sXUi6SGAxu1KJXOzyNvPsqhCYtCPIrDs2eOYz7SmMLHaNoqyxM3Bzhv8bvzV3rYTh3Igt5iBkPQbFHKAbbDHUMtO61qiRTblUvEOmY+KV0afWUpXg8gZeJ2plpgQ0sZcWAdeM5cyL72sex7p0CESSvnYs4xsN8/W8p0I9uowhoyXFQaTzuZV3bRei3luCvm2ALu65U8yDX+56PRDLOeLn/Ol1CLRGYR8ltljsuaR8lJp5WSd3OFmgZnE0+NuHboRV6VqiGnFTSK/A94UHfkMQj3j16iv+gEw6ARI4JTMRsJ8q6Qxh1crfrfYk2AhA3qTiFYJiyEwPtXDij0XmKXE39zf+xAlwIBL8WCj+wjlRX9Zy/SynPbuw/aashg0xwxCbynu334=
bucket: new.sendsh.it
skip_cleanup: true
region: eu-west-1
local-dir: build
on:
repo: shitty-inc/sendsh.it
branch: golang
60 changes: 0 additions & 60 deletions Gulpfile.js

This file was deleted.

18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# sendsh.it
The [sendsh.it](https://sendsh.it/) client-side javascript will read and encrypt a file in your browser using the [Triplesec](http://keybase.github.io/triplesec/) library with a random key generated by its PRNG.
# Sendsh.it

The encrypted file is then uploaded to the backend node.js application which stores it in S3 and returns a unique ID. This is combined with your generated key to produce a unique url you can share with someone else. Once they visit the url the site will download the file and decrypt it in their browser.
Sendsh.it is a quick and easy way to send one-time and locally encrypted files to your friends.

Files are deleted after being downloaded or once they are over 24 hours old.
## Discription

The [sendsh.it](https://sendsh.it/) React SPA will read and encrypt a file in your browser using the [Triplesec](http://keybase.github.io/triplesec/) library with a random key generated by its PRNG.

## Install
* `git clone git@github.com:threesquared/sendsh.it.git`
* `npm install`
* `gulp`
* `npm start`
The encrypted file is then uploaded to the [backend api](https://github.com/shitty-inc/sendshit-api) which stores it in S3 and returns a unique ID. This is combined with your generated key to produce a unique url you can share with someone else. Once they visit the url the site will download the file and decrypt it in their browser.

Files are deleted after being downloaded or once they are over 24 hours old.

## Disclaimer

I am not an expert in cryptography. If you have something important to keep secret please think about using a peer reviewed and audited service. This is just an experiment with in browser encryption and node.js.
100 changes: 0 additions & 100 deletions app/app.js

This file was deleted.

30 changes: 0 additions & 30 deletions app/controllers/downloadController.js

This file was deleted.

41 changes: 0 additions & 41 deletions app/controllers/uploadController.js

This file was deleted.

17 changes: 0 additions & 17 deletions app/directives/selectOnClick.js

This file was deleted.

12 changes: 0 additions & 12 deletions app/directives/uploadOnChange.js

This file was deleted.

Loading

0 comments on commit 7f8139b

Please sign in to comment.