Back{: .button}
gpg --full-generate-key
gpg --list-secret-keys --keyid-format=long
gpg --armor --export <keyid>
echo "Hello" | gpg --sign --armour
export GPG_TTY=$(tty)
If this is not set you may get an error like
Inappropriate ioctl for device
when signing with your key
gpg --import <keyring.gpg>
gpg --verify <signature-file.sig> <file-to-verify>
# ~/.gnupg/gpg.conf
use-agent
pinentry-mode loopback
# ~/.gnupg/gpg-agent.conf
allow-loopback-pinentry
echo RELOADAGENT | gpg-connect-agent
gpgconf --kill gpg-agent