gpg --full-generate-key
gpg --list-keys
gpg --list-keys --keyid-format LONG
gpg --list-secret-keys --keyid-format LONG
gpg --armor --export gpg-key-id
gpg --output public.pgp --armor --export user@email
gpg --output private.pgp --armor --export-secret-key user@email
gpg --import private.gpg
gpg -r RECIPIENT_EMAIL -e FILE_NAME
gpg -d FILE_NAME
gpg -c --pinentry-mode=loopback test
--pinentry-mode=loopback
will force passphraseexport GPG_TTY=$(tty)
mkdir /path/to/the/a/desired/directory/in/external/drive/
gpg --homedir /path/to/the/a/desired/directory/in/external/drive/ --import /path/to/the/gpg_private_key.gpg
export GNUPGHOME=/path/to/the/a/desired/directory/in/external/drive/
$ENV:GNUPGHOME=/path/to/the/a/desired/directory/in/external/drive/
vi ~/.gnupg/gpg.conf
default-cache-ttl 1
max-cache-ttl 1
echo RELOADAGENT | gpg-connect-agent
gpg -c --no-syskey-cache file.txt