Skip to content

Instantly share code, notes, and snippets.

@donatello
Created April 12, 2019 22:14
Show Gist options
  • Save donatello/f435c29384605fc045fce707959187c0 to your computer and use it in GitHub Desktop.
Save donatello/f435c29384605fc045fce707959187c0 to your computer and use it in GitHub Desktop.
GPG based AES256 file encryption example

Encrypting a file /tmp/out

gpg --output /tmp/out.enc --symmetric --cipher-algo AES256 /tmp/out

The above will prompt for a password.

Decrypting a file /tmp/out.enc

gpg --output /tmp/out.dec -d /tmp/out.enc

The above will prompt for a password.

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