go get github.com/techytoes/passVault
Note: You might need to add bin path in the .zshrc
file.
export PATH=$PATH:$(go env GOPATH)/bin
- Run
init
command to createcreds.json
andapp.json
file in home directory. - Use
sniff
command to create new credentials. - Use
spit
command to fetch credentials.
- Initialize a new JSON file for storing credentials and a config file for storing app-level configs.
passvault init
Note: This command prompts to input a 32 byte string which would be used as an encryption key. throughout the project.
- Create a new credential using this command.
passvault sniff --app=<app/website> --desc=<desc>
This command opens an interactive prompt where user can enter username and password.
Note: desc
is nullable field.
- Print all usernames stored for the particular app.
passvault spit --app=<app/website>
- Print all apps whose creds are present.
passvault list
- Return password when a app and username combination is provided.
passvault spit --app=<app/website> --username=<username/email>
Note: instead of returning the password it is copied to the clipboard directly.