Skip to content

Store your crown jewels (passwords) securely in a private git repository.

Notifications You must be signed in to change notification settings

HaykoKoryun/crown-jewels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

֎ CROWN JEWELS ֍

Store your crown jewels (passwords) securely in a private git repository.

Encrypt

  1. Install npm i -g crown-jewels
  2. Create a file with your passwords, e.g. deploy.pwd
  3. Run crown-jewels store deploy.pwd
  4. Supply an encryption key in the following prompt (maximum 32 characters)
  5. Delete the original file (recommended, however don't forgot to git ignore it if you don't delete it)
  6. Commit the two generated files deploy.cj and deploy.cjiv (cj is the encrypted file, cjiv is an initialisation vector)

Decrypt

  1. Run crown-jewels reveal deploy to decrypt the file deploy.cj file
  2. Supply the same encryption key as before in the following prompt
  3. 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).

About

Store your crown jewels (passwords) securely in a private git repository.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published