This will help you Encrypt, Store and Decrypt files securely with no dependencies.
npm install @cyclic.sh/secure-file
git add <YOUR_INPUT_FILENAME>.secure; git commit -m "Added secret file"
- Set an environment variable
SECRET_PASSPHRASE
with the value used to encrypt the file - Read the file in your server
const { decryptToString } = require('./secure-file.js')
...
const secureFileName = './account.json.secure'
const jsonStr = await decryptToString(secureFileName)
Coming soon!
Coming soon!