gpg --full-generate-key
gpg --import <filename>
gpg --export-secret-keys <filename>.gpg
adding –armor ensures the key is saved in ASCII format:
gpg --armor --export-secret-keys <filename>.gpg
gpg --list-keys
gpg --list-secret-keys
prints out ids
gpg --delete-secret-keys KEYIDFROMABOVE
gpg --delete-keys KEYIDFROMABOVE
gpg --output /my/path/to/output_file.ext --decrypt /my/encrypted/source/file.gpg
gpg --list-keys
#or
gpg -K
copy the <KEY_ID>
gpg --edit-key <KEY_ID>
gpg> trust
1 = I don't know or won't say
2 = I do NOT trust
3 = I trust marginally
4 = I trust fully
5 = I trust ultimately
m = back to the main menu
q
to exitgpg –edit-key
gpg> passwd
enter the password
save
q to exit
gpg --encrypt --passphrase-file </path/to/passphrase> --sign -r <who_to_sign_for> </path/to/file/to/encrypt>