Skip to content

Instantly share code, notes, and snippets.

@LinuxPanda
Created January 27, 2015 07:11
Show Gist options
  • Save LinuxPanda/e0b8298df5e78878321a to your computer and use it in GitHub Desktop.
Save LinuxPanda/e0b8298df5e78878321a to your computer and use it in GitHub Desktop.
File Encryption/Decryption
OpenSSl (Platform Independent)
------------------------------
Encryption: openssl aes-256-cbc -in plain-text.txt -out filename.enc
Decryption: openssl aes-256-cbc -d -in filename.enc -out plain-text.txt
GPG/GnuPG
---------
Encryption: gpg -output filename.gpg --symmetric --cipher-algo AES256 plain-text.txt
Decryption: gpg -output plain-text.txt -d filename.gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment