@fusionfroze/vault
v1.0.0
Published
encrypt and manage your secrets from the terminal
Downloads
27
Readme
Vault
Encrypt and manage your secrets from the terminal.
Installation
Prerequisite: Node.js v18+
$ npm i -g @fusionfroze/vaultHow to use it
Initialization
To initialize the vault, run -
$ vault initYou will set a master password here for the vault.
(Important: Do not forget this password. You will need this password to make new entries, retrieve them, remove them, change the password itself or reset the entire vault.)
Making a new entry
To add a new entry, run -
$ vault addYou will need to enter the vault's master password to proceed. After that the following input interface will open -
$ vault add
✔ Enter vault's master password: ******
✔ Identifier of the new password/secret: new_password
✔ Password/Secret: ************
Your password has been added to the vaultEach entry has an Identifier that uniquely identifies it. Here, provide a unique identifier and the password/secret to be saved to add it to the vault.
Retrieving a password/secret
To retrieve a password/secret, run -
$ vault copy <identifier>The stored password/secret will be copied directly to your clipboard. Example usage:
$ vault copy new_passwordListing all the identifiers
To list all the identifiers of respective entries stored in the vault, run -
$ vault lsThis command will not need the master password.
Removing an entry
To remove a specific entry from the vault, run -
$ vault remove <identifier>You will be asked for confirmation once. Once executed, this action cannot be undone.
Example usage:
$ vault remove new_passwordChanging the master password
To change the master password of the vault, run -
$ vault passwdResetting the vault
To reset the vault, run -
$ vault resetYou will be asked for confirmation before the vault is reset.
(Important: This will delete everything in the vault. Make sure you are not deleting anything important before running this command.)
After resetting the vault, run vault init to set it up again.
