Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GPG cheatsheet

GPG Cheatsheet

Generate a key

gpg --full-generate-key

List keys

gpg —list-keys
gpg --list-secret-keys --keyid-format LONG

Sign

gpg —recipient <EMAIL> —clearsign <FILE>
gpg —verify <FILE>

Encrypt

gpg —recipient <EMAIL> —encrypt <FILE>
gpg —decrypt <FILE> —output decrypted

Encrypt and sign

gpg —recipient <EMAIL> —sign —encrypt <FILE>
gpg —decrypt <FILE>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment