pass
A CLI password manager
Setup:
$ sudo apt install pass
# specify 4096 bits and username in next step
$ gpg --full-generate-key
$ pass init username
Add password
$ pass insert service/username
Generate password
$ pass generate service/username 32 --no-symbols
List passwords
$ pass
Retrieve password
$ pass service/username
Copy password to clipboard
$ pass --clip service/username
Git integration
$ pass git init
# create a private git repository
$ pass git remote add origin git@git-server.com:username/repository.git
$ pass git push -u origin master
[source]
gpg
List keys
$ gpg --list-keys
Export keys. Keep your keys safe.
$ mkdir ~/gpg
$ gpg --export --armor "User Name" > ~/gpg/public.key
$ gpg --export-secret-keys "User Name" > ~/gpg/private.key
Import a key
$ gpg --import /path/to/key
It may be necessary to set the trust level of the keys, after importing.