GPG

GnuPG, GNU Privacy Guard, is a complete and free implementation of the OpenPGP standard as defined by RFC4880 (also known as PGP). GnuPG allows you to encrypt and sign your data and communications.

- gnupg.org

Cheat Sheet

Keys Management

Generate A New Key

# You will be prompted with a few questions. Follow the instructions to generate the key.
gpg --full-generate-key

List Keys

# List the private keys
gpg --list-secret-keys [--keyid-format=long]

# List the public keys
gpg --list-keys [--keyid-format=long]

Export Keys

Import Key

Delete Keys

Encryption/Decryption

Signature

Last updated