Skip to content

Downloads, decrypts (and optinally removes from S3) encrypted files created by uploadenc

License

Notifications You must be signed in to change notification settings

dents/decrypt-uploadenc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

decrypt-uploadenc

Decrypts files created by uploadenc.

Usage:

  • private.pem needs to be present in directory (see uploadenc for generation instructions)
  • AWS S3 credentials need to be either included in decrypt-config.js or anywhere the AWS SDK will see them. When using AWS instance roles, set awsCredentials to null in decrypt-config.js and the AWS SDK will automatically take care of everything. Although the whole point of this project is to keep private keys off AWS, so the decryption program should be run outside of the cloud.
  • This will stream files from S3, decrypt and process them on the fly, generating files on local disk:
    • node decryptFromS3.js

By default the encrypted blobs are deleted from S3 after successful decryption. See decrypt-config.js to turn that off.

Encrypted files are signed with SHA512 so any corruption can be detected, however they do not contain any recovery information. If there is corruption, the affected encrypted file needs to be downloaded from S3 again. The only place corruption could reasonably come from is an ISP injecting garbage, for example when using a cruise ship wifi.

About

Downloads, decrypts (and optinally removes from S3) encrypted files created by uploadenc

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published