A convenient credential store that securely saved account info.
The crypt
cli provides simple commands to add, modify and list all stored credentials.
Crypt stores credentials in an aes encrypted file cryptfile
. The crypt
binary will
resolve the default crypfile in the following locations in order.
--cryptfile
,-c
flagCRYPTFILE
env variable~/.cryptfile
The strength of a password is limited by its convention and length. Easy to remember usually means easier to crack. Committing a long password is hard and storing the password in plaintext in your pc is a major point of failure.
Crypt will use a SHA256 hash as the key to unlock the cryptfile
.
The hash will be computed from a password that the user provides.
add
adds a credential to the resolvedcryptfile
delete
deletes the given service from cryptedit
edits individual fields for the given serviceexport
exports thecryptfile
to plain json (mostly for debugging, be careful)show
show information about a service while copying the pwd to your clipboardinfo
metadata about the resolvedcryptfile
ls
list all stored services in the resolvedcryptfile
new
creates a newcryptfile
pwd
copies the pwd of the specified service in your clipboard
The --help
flag can be used in conjunction with any command to get more details
about usage and optional flags.
Each service is stored as a credential
with the given structure.
credential {
id: string
service: string
domains: string[]
email: string
username: string
password: string
description: string
tags: string[]
created_at: int
updated_at: int
details: {
key: string
value: string
}[]
}