GPG

list

gpg --list-keys
gpg --list-secret-keys

Change Passphrase

gpg --edit-key felix
gpg> passwd
gpg> save

GPG for SSH https://linode.com/docs/security/authentication/gpg-key-for-ssh-authentication/

Encrypt and Decrypt a File

echo hi > hi
gpg -er felix@felixhummel.de hi

gpg -d hi.gpg > hi_again

Export a Key

gpg --armor --export felix@felixhummel.de > felix.asc