gpg
GNU Privacy Guard, an OpenPGP encryption and signing tool. tldr-pages
On several platforms
Several platforms
Create a GPG public and private key interactively
gpg --full-generate-keyIdentifyList all keys from the public keyring
gpg --list-keysIdentifySign doc.txt without encryption (writes output to doc.txt.asc)
gpg --clearsign doc.txtIdentifyEncrypt and sign doc.txt for alice@example.com and bob@example.com (output to doc.txt.gpg)
gpg --encrypt --sign --recipient alice@example.com --recipient bob@example.com doc.txtIdentifyEncrypt doc.txt with only a passphrase (output to doc.txt.gpg)
gpg --symmetric doc.txtIdentifyDecrypt doc.txt.gpg (output to stdout)
gpg --decrypt doc.txt.gpgIdentifyImport a public key from WKD (Web Key Directory) if the key isn't already in the keyring
gpg --locate-keys alice@example.comIdentifyExport the public/private key for alice@example.com (output to stdout)
gpg --export --armor alice@example.comIdentify