Quick'n easy gpg cheatsheet

to create a key:
gpg --gen-key
generally you can select the defaults.
to export a public key into file public.key:
gpg --export -a "User Name" > public.key

to export a private key:
gpg --export-secret-key -a "User Name" > private.key

to import a public key:
gpg --import public.key

to delete a public key (from your public key ring):
gpg --delete-key "User Name"

to delete an private key (a key on your private key ring):
gpg --delete-secret-key "User Name"

To list the keys in your public key ring:
gpg --list-keys

To encrypt data, use:
gpg -e -u "Sender User Name" -r "Receiver User Name" somefile

To decrypt data, use:
gpg -d mydata.tar.gpg

I haven't used the commands:
gpg --edit-keygpg --gen-revoke


Popular posts from this blog

Byobu : Japanese term for decorative