crown-jewels
v1.0.0
Published
<p align="center"> <img src='misc/banner.png'/> </p>
Downloads
6
Readme
Store your crown jewels (passwords) securely in a private git
repository.
Encrypt
- Install
npm i -g crown-jewels
- Create a file with your passwords, e.g.
deploy.pwd
- Run
crown-jewels store deploy.pwd
- Supply an encryption key in the following prompt (maximum 32 characters)
- Delete the original file (recommended, however don't forgot to
git
ignore it if you don't delete it) - Commit the two generated files
deploy.cj
anddeploy.cjiv
(cj
is the encrypted file,cjiv
is an initialisation vector)
Decrypt
- Run
crown-jewels reveal deploy
to decrypt the filedeploy.cj
file - Supply the same encryption key as before in the following prompt
- If the key is correct, the command will display the contents of the file for 180 seconds and then automatically clear the command console
Note
If you don't want to play along with names for the two commands store
and reveal
you can use their short aliases e
(encrypt) and d
(decrypt).