/vault

A secure credentials manager. It's free. It's offline. It's encrypted.

Primary LanguageJavaScript

VAULT

A secure credentials manager.

It's free. It's offline. It's encrypted.

Installation

npm run deploy:prod

Usage

  • init - Creates vault
  • add - Adds credentials
  • list - Lists accounts available
  • show - Gets credentials
  • export - Downloads all credentials to an encrypted file
  • remove - Removes credentials from account
  • update - Updates credentials

Create the vault

Allows creation of vault from scratch or from a vault backup

Show options

$ vault init --help

Options:
  -f, --file <vlt.enc file>  The vlt.enc file generated after exporting vault

Create vault from scratch

$ vault init

Vault initialized!

Import vault backup

See export to create vault backup

# vault init -f <vault file>
$ vault init -f /tmp/Vault/vault_1234456788.vlt.enc

Vault initialized!

Add credentials

# vault add <account>
$ vault add facebook

Enter vault password [A-a, 0-9, symbols]: ******
Enter user ID/email: thedev.ay
Enter password: **********
Notes:

Credentials added!

List of accounts

Note: This command won't show credentials!

$ vault list

  +----------+
  | Account  |
  +----------+
  | facebook |
  | netflix  |
  | twitter  |
  +----------+

Get credentials

Get credentials for specific account

# vault show [account]
$ vault show facebook

  +----------+-----------+--------------------+-------+
  | Account  | UserId    | Password           | Notes |
  +----------+-----------+--------------------+-------+
  | facebook | thedev.ay | <plaintext string> |       |
  +----------+-----------+--------------------+-------+

Get all credentials

$ vault show

  +----------+-----------+--------------------+-------+
  | Account  | UserId    | Password           | Notes |
  +----------+-----------+--------------------+-------+
  | facebook | thedev.ay | <plaintext string> |       |
  | netflix  | thedev.ay | <plaintext string> |       |
  | github   | thedev.ay | <plaintext string> |       |
  +----------+-----------+--------------------+-------+

Export the vault

Creates an encrypted copy of your vault. See init to import vault.

$ vault export

Link to file: /tmp/Vault/vault_1588410242.vlt.enc

Remove credentials on a specific account

# Before delete
$ vault show

  +----------+-----------+--------------------+-------+
  | Account  | UserId    | Password           | Notes |
  +----------+-----------+--------------------+-------+
  | facebook | thedev.ay | <plaintext string> |       |
  | netflix  | thedev.ay | <plaintext string> |       |
  | github   | thedev.ay | <plaintext string> |       |
  +----------+-----------+--------------------+-------+

# vault remove <account>
$ vault remove facebook

Enter vault password [A-a, 0-9, symbols]: ******
Enter user ID/email: thedev.ay

Credentials removed!

# After delete
$ vault show

  +----------+-----------+--------------------+-------+
  | Account  | UserId    | Password           | Notes |
  +----------+-----------+--------------------+-------+
  | netflix  | thedev.ay | <plaintext string> |       |
  | github   | thedev.ay | <plaintext string> |       |
  +----------+-----------+--------------------+-------+

Update credentials

Updates can only be done for password and notes

# vault update <account>
$ vault update github

Enter vault password [A-a, 0-9, symbols]: ******
Enter user ID/email: thedev.ay
Update password? Yes
Enter password: ***********
Update notes? Yes
Notes: Some notes here

Credentials updated!

# vault show <account>
$ vault show github

  +----------+-----------+--------------------+-----------------+
  | Account  | UserId    | Password           | Notes           |
  +----------+-----------+--------------------+-----------------+
  | github   | thedev.ay | <plaintext string> | Some notes here |
  +----------+-----------+--------------------+-----------------+

Contributing

Pull requests are welcome.

License

MIT