Skip to content

Instantly share code, notes, and snippets.

@skarra
Last active August 29, 2015 14:22
Show Gist options
  • Save skarra/6508567be359ca034fb5 to your computer and use it in GitHub Desktop.
Save skarra/6508567be359ca034fb5 to your computer and use it in GitHub Desktop.
GPG Cheat Sheet
# Encrypt using someone's public key. You should have earlier added the
# recipient's public key to your ring.
$ gpg --output output-file.gpg --encrypt --recipient [email protected] input-file.txt
# Decrypting a file encrypted with your public key
$ gpg --output doc --decrypt doc.gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment