Ansible Playbook inspired simple vault to secure files. Handy for sharing for example environment settings in repository.
Versions < 1.0.0 are considered as Beta.
npm node-file-vault install -g
Global is more handy, so you can use it anywhere.
Add keyfile called .vault_key
to your project file. It is searched from parent directories just like a Gulpfile or a package.json. In this key file just include random key, it is your password to files.
thisshouldbesomewhatlongkeyboardcat
Be sure to gitignore .vault_key!
To encrypt a file type:
vault encrypt <file>
To decrypt encrypted file, be sure that you have the .vault_key
file .
vault encrypt <file>