gpg do?GNU Privacy Guard — encrypt, decrypt, and sign data.
▸ Explain your own gpg command →$ gpg -c secrets.txt
$ gpg -e -r alice@example.com report.pdf
$ gpg -d secrets.txt.gpg
$ gpg --list-keys
| -c | encrypt with a symmetric passphrase (no keys needed) |
| -e | encrypt the input for one or more recipients |
| -d | decrypt the input |
| -s | make a signature |
| -a | produce ASCII-armored (text) output instead of binary |
| -b | make a detached signature (separate .sig file) |
| -v | verbose output |
| -o | write output to this file |
| -r | encrypt for this recipient (key ID or email) |
| -u | sign using this local key |
| --gen-key | interactively generate a new key pair |
| --full-generate-key | generate a key pair with all options prompted |
| --list-keys | list the public keys in your keyring |
| --export | export a public key |
| --import | import keys from a file |
| --verify | verify a signature |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.