PGP Guide
Maintained OpenPGP/GnuPG reference for key generation, encryption, signatures, and verification.
PGP/OpenPGP is still useful for signing, encryption, file verification, and key continuity, but old darknet-market examples and GnuPG 2.0 transcripts age badly. This page is the maintained reference; the Jolly Roger page remains an untouched historical archive.
Core Guidance
Prefer current GnuPG documentation and maintained platform docs over old forum workflows.
Do not generate or store sensitive keys on an untrusted host.
Verify key fingerprints through a separate trusted channel before trusting a public key.
Protect the private key and maintain an offline backup of your key material and revocation certificate.
Add dates, context, and purpose to signed messages so a valid signature cannot be easily replayed out of context.
Use SHA-256 or stronger hashes and OpenPGP signatures for verification. MD5 and SHA-1 are legacy-only for security purposes.
Use
--no-commentsand--no-emit-versionwhen you do not want GnuPG version comments included in armored output.
References
Gpg4win - Windows OpenPGP distribution.
Generate a Key
Modern GnuPG uses --full-generate-key for the interactive flow.
Recommended defaults for most users:
Use RSA/RSA or the current GnuPG default unless you have a specific key-type requirement.
Use a strong passphrase.
Set an expiration date so old keys age out naturally.
Create and protect a revocation certificate.
List keys and fingerprints:
Export and Back Up Keys
Export a public key:
Export a private key only for offline backup:
Create a revocation certificate:
Import Public Keys
Import from a file:
Import pasted armored text safely from a file or heredoc:
Set trust only after independently verifying the fingerprint:
Encrypt and Decrypt Messages
Encrypt a file for a recipient:
Encrypt text from stdin:
Decrypt:
For lower-noise armored output:
Sign and Verify
Clearsign text:
Create a detached signature:
Verify a signed message or detached signature:
If verification fails after any text changes, treat the content as modified.
Tails and OpenPGP
Tails no longer uses the old gpgapplet documentation paths commonly found in historical guides. Use the current Tails encryption and OpenPGP documentation for supported workflows.
Last updated