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 [email protected] > public.gpg
gpg --export-secret-keys -a [email protected] > private.gpg
		

Encrypt a file using a specific key

gpg --encrypt -a -r [email protected] 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