Quick guide to GPG

Last updated: 2022-12-23


Generate a key

gpg --generate-key

Import an existing key

gpg --import key.txt

Export a key

gpg --export -a person@domain.tld public.gpg
gpg --export-secret-keys -a person@domain.tld
		

Encrypt a file using a specific key

gpg --encrypt -a -r person@domain.tld file.ext

Sign a file using a specific key

gpg --clear-sign -a file.ext

List all keys in the keyring

gpg --list-keys


made with <3 by your friends at Dead End Shrine Online