GnuPG Cheat Sheet
GnuPG Cheatsheet
Quick list of the most common GnuPG commands that I need most often. Encrypt, decrypt, signing, key management, key servers, and special features.
Encrypt and decrypt
Encrypt a file with your key
gpg -er me@example.org diary.txt
-
Options
-r encrypts the file for the user specified as argument. The output is written to diary.txt.gpg.
Encrypt a file for another person
gpg -er alice@example.org diary.txt
Encrypt a file with passphrase
gpg -c diary.txt
Decrypt a file
gpg -do diary.txt diary.txt.gpg
Encrypt and sign
Encrypt a file and sign with your key
gpg -esr alice@example.orge diary.txt
Sign and encrypt the file, output is written to diary.txt.gpg.
