Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dents/uploadenc
Writes client-uploaded files directly to Amazon S3, encrypting them to a given public key in the process. Secure uploads without keeping private keys in the cloud!
https://github.com/dents/uploadenc
aws-s3 encryption html https-server javascript mobile uploads
Last synced: 3 days ago
JSON representation
Writes client-uploaded files directly to Amazon S3, encrypting them to a given public key in the process. Secure uploads without keeping private keys in the cloud!
- Host: GitHub
- URL: https://github.com/dents/uploadenc
- Owner: dents
- License: mit
- Created: 2017-10-09T13:56:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T14:39:16.000Z (over 7 years ago)
- Last Synced: 2025-01-16T19:50:00.393Z (18 days ago)
- Topics: aws-s3, encryption, html, https-server, javascript, mobile, uploads
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uploadenc
Writes client-uploaded files directly to Amazon S3, encrypting them to a given public key in the process. Works great for securely sending yourself personal pictures from your phone, for example.Overview:
* Uses node's https module to listen on given port (default 443)
* By default serves index.html with a simple html form containing an upload input that accepts multiple files
* When client clicks upload, data is encrypted on the fly and sent to a configured S3 bucket (using [AWS credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-started-nodejs.html))Needs a 1024+ bit RSA public key and working SSL certs to function.
To create RSA keys:>openssl genrsa -out private.pem 4096
>openssl rsa -in private.pem -pubout > key.pub
__private.pem__ is to be kept in a secure place, preferrably completely offline. *Do not keep private.pem anywhere on the server.* __key.pub__ does need to be on the server, alongside this code.
Needs at least Node v6.11 to work properly. Works fine on a Raspberry Pi, even with multi-GB file uploads.
Use [decrypt-uploadenc](https://github.com/dents/decrypt-uploadenc) to decrypt these files after downloading them from S3.