Skip to content

Instantly share code, notes, and snippets.

@indiebrain
Last active April 8, 2016 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indiebrain/190794df8f4a09693783d206f95f72ab to your computer and use it in GitHub Desktop.
Save indiebrain/190794df8f4a09693783d206f95f72ab to your computer and use it in GitHub Desktop.
How to decrypt an armored GPG payload, inline, on the CLI

With echo

$ echo -n "<gpg string>" | gpg --decrypt

With tee

$ tee <<EOM | gpg -d
<gpg message string>
EOM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment