Skip to content

Instantly share code, notes, and snippets.

@scemama
Created March 22, 2015 20:20
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 scemama/9b6b4f6a6a1699554b2c to your computer and use it in GitHub Desktop.
Save scemama/9b6b4f6a6a1699554b2c to your computer and use it in GitHub Desktop.
GPG encryption

Add to ~/.gnupg/gpg.conf:

cipher-algo AES256

Encrypt a file:

gpg -c ${FILE}

Decrypt a file:

gpg ${FILE}

Decrypt a file to stdout:

gpg -qd ${FILE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment