npm.io
0.1.6 • Published 13 years agoCLI

enver

Licence
MIT
Version
0.1.6
Deps
1
Vulns
0
Weekly
0

Enver

Enver is shell utility written in Node.js to store your accounts informations.
You can retrieve any information saved with one command, copied in your clipboard, and not displayed.
Saved data will be encrypted.

Installation

Install enver using NPM

$ npm install -g enver
$ enver init

init creates the RSA keys that will be placed in ~/.enver

#Commands ###Import

$ enver import path/to/json

You can easily import a json file. This will not erase your previously inserted data, accounts will merged.

#####json example

{
    "project-name": {
        "ssh": {
            "user": "foo",
            "password": "bar"
        }
    }
}

The structure is completely flexible.

###Get

$ enver get project-name.ssh.user

The retrieved key will be copied in your clipboard and won't be displayed.

###Delete

$ enver delete project-name.ssh.user

###Add

$ enver add new-project.db.user

After this command you will be prompted to insert the value of the object so it won't be present in your command history.

###List

$ enver list [path]

This command will show the complete, or partial depending on the presence of [path], json structure without leaves keeping users and passwords hidden.

$ enver list
project-name
└ ssh
  └ user
  └ password

$ enver list project-name.ssh
user
password

###Export

$ enver export path/to/file.json

This command exports the database in a clear json. If you want to format it you may want to use jsonlint for node.

Oh My Zsh! autocomplete plugin

copy ~/node_modules/enver/enver.plugin.zsh inside your ~/.oh-my-zsh/plugins/ and activate it in your ~/.zshrc file to enable autocomplete for commands and object paths.

special thanks to flevour