gpg

Tools for signing, checking, encrypting or decrypting

Supported algorithms:

Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2

grammar

gpg [options] [file...]

Parameters:

  -s, --sign signature
      --clear-sign generate clear text signature
  -b, --detach-sign generate a separate signature
  -e, --encrypt encrypt data
  -c, --symmetric Use only symmetric ciphers for encryption
  -d, --decrypt decrypt data (default)
      --verify signature verification
  -k, --list-keys list keys
      --list-signatures list keys and signatures
      --check-signatures List and check key signatures
      --fingerprint List keys and fingerprints
  -K, --list-secret-keys list private keys
      --generate-key Generate a new key pair
      --quick-generate-key quickly generate a new key pair
      --quick-add-uid Quickly add a new user ID
      --quick-revoke-uid Quickly revoke user ID
      --quick-set-expire Quickly set a new expiration date
      --full-generate-key Full-featured key pair generation
      --generate-revocation Generate revocation certificate
      --delete-keys Remove keys from the public key ring
      --delete-secret-keys Remove keys from the private keyring
      --quick-sign-key Quick signature key
      --quick-lsign-key quickly sign the key locally
      --quick-revoke-sig Quickly revoke key signature
      --sign-key signing key
      --lsign-key local signing key
      --edit-key Sign or edit key
      --change-passphrase change passphrase
      --export export key
      --send-keys export keys to key server
      --receive-keys Import keys from key server
      --search-keys Search for keys on key server
      --refresh-keys Update all keys from key server
      --import import/merge keys
      --card-status print card status
      --edit-card change data on card
      --change-pin Change card PIN code
      --update-trustdb Update trust database
      --print-md print message summary
      --server run in server mode
      --tofu-policy VALUE Set TOFU policy for the key

Options:

  -a, --armor specifies output in ascii format
  -r, --recipient USER-ID Encryption of specific user ID
  -u, --local-user USER-ID Use USER-ID for signing or decryption
  -z N sets the compression level to N (0 means disabled)
      --textmode Use canonical text mode
  -o, --output FILE Write output to file FILE
  -v, --verbose verbose mode
  -n, --dry-run do not make any changes
  -i, --interactive prompt before overwriting
      --openpgp Use strict OpenPGP behavior

Example:

  -se -r Bob [file] Sign and encrypt for user Bob
  --clear-sign [file] Generate clear text signature
  --detach-sign [file] Generate a standalone signature
  --list-keys [names] show keys
  --fingerprint [names] display fingerprints