Subcommands (3)
Options (7)
--full-gen-keybooleanCreate a GPG public and private key interactively
gpg {{[--full-gen-key|--full-generate-key]}}-k, --list-keysbooleanList all keys from the public keyring
gpg {{[-k|--list-keys]}}booleanEncrypt and sign `doc.txt` for `[email protected]` and `[email protected]` (output to `doc.txt.gpg`)
gpg {{[-es|--encrypt --sign]}} {{[-r|--recipient]}} {{[email protected]}} {{[-r|--recipient]}} {{[email protected]}} {{doc.txt}}-r, --recipientbooleanEncrypt and sign `doc.txt` for `[email protected]` and `[email protected]` (output to `doc.txt.gpg`)
gpg {{[-es|--encrypt --sign]}} {{[-r|--recipient]}} {{[email protected]}} {{[-r|--recipient]}} {{[email protected]}} {{doc.txt}}-c, --symmetricbooleanEncrypt `doc.txt` with only a passphrase (output to `doc.txt.gpg`)
gpg {{[-c|--symmetric]}} {{doc.txt}}-d, --decryptbooleanDecrypt `doc.txt.gpg` (output to `stdout`)
gpg {{[-d|--decrypt]}} {{doc.txt.gpg}}-a, --armorbooleanExport the public/private key for `[email protected]` (output to `stdout`)
gpg {{--export|--export-secret-keys}} {{[-a|--armor]}} {{[email protected]}}Examples (8)
Create a GPG public and private key interactively
gpg [--full-gen-key|--full-generate-key]List all keys from the public keyring
gpg [-k|--list-keys]Sign `doc.txt` without encryption (writes output to `doc.txt.asc`)
gpg --clearsign doc.txtEncrypt and sign `doc.txt` for `[email protected]` and `[email protected]` (output to `doc.txt.gpg`)
gpg [-es|--encrypt --sign] [-r|--recipient] [email protected] [-r|--recipient] [email protected] doc.txtEncrypt `doc.txt` with only a passphrase (output to `doc.txt.gpg`)
gpg [-c|--symmetric] doc.txtDecrypt `doc.txt.gpg` (output to `stdout`)
gpg [-d|--decrypt] doc.txt.gpgImport a public key
gpg --import public.gpgExport the public/private key for `[email protected]` (output to `stdout`)
gpg --export|--export-secret-keys [-a|--armor] [email protected]