@cyclic.sh/secure-file
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@cyclic.sh/secure-file

This will help you Encrypt, Store and Decrypt files securely with no dependencies.

semantic-release: angular

Getting Started

  1. npm install @cyclic.sh/secure-file

Store encrypted file in git

  1. git add <YOUR_INPUT_FILENAME>.secure; git commit -m "Added secret file"
  2. Set an environment variable SECRET_PASSPHRASE with the value used to encrypt the file
  3. Read the file in your server
const { decryptToString } = require('./secure-file.js')
...
const secureFileName = './account.json.secure'
const jsonStr = await decryptToString(secureFileName)

Store encrypted file in S3

Coming soon!

Store encrypted file in DynamoDB

Coming soon!

Readme

Keywords

none

Package Sidebar

Install

npm i @cyclic.sh/secure-file

Weekly Downloads

0

Version

1.0.1

License

GPLV3

Unpacked Size

43.8 kB

Total Files

14

Last publish

Collaborators

  • seekayel
  • korostelevm