Skip to content

Instantly share code, notes, and snippets.

@spencerdodd
Last active December 13, 2022 14:08
Show Gist options
  • Save spencerdodd/80bfcc28e99c2aadd55dae5734be8850 to your computer and use it in GitHub Desktop.
Save spencerdodd/80bfcc28e99c2aadd55dae5734be8850 to your computer and use it in GitHub Desktop.
pgp file encryption / decryption with GPG

encryption

gpg --recipient jim@dundermifflin.com --output dwight.jpg.pgp --encrypt dwight.jpg

decryption

gpg --output dwight.jpg --decrypt dwight.jpg.gpg

ascii armor

add the --armor flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment