Quick guide to GPG

Last updated: 2023-06-19


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 > private.gpg
		

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