simple-file-encrypt
v1.0.12
Published
A simple command line tool for encrypting/decrypting a file
Maintainers
Readme
Simple File Encrypt
A simple tool to quickly encrypt and decrypt a file using aes-256-ctr. This can be useful for encrypting production config files to store in git.
Install
npm install -g simple-file-encrypt
Key setup (Local env)
export SIMPLEFILE_ENCRYPT_KEY=abcdKey setup (Config file)
echo 'acbd' > ~/.simple-file-encrypt-keyDevelopment setup / process
- Add config to
.gitignore - Update config
- Encrypt config -
simple-file-encrypt production.json - Add the encrypted file to git -
git add production.json.locked
Step 3 above creates a ./production.json.locked that can be safely added to git.
Production setup / process
- Pull latest changes from git
- Decrypt config (
simple-file-decrypt production.json).
Step 2 re-creates the original production.json
