Skip to content

Instantly share code, notes, and snippets.

@mrahul17
Last active April 15, 2017 09:45
Show Gist options
  • Save mrahul17/d71a4ca6e617cd9f4d45 to your computer and use it in GitHub Desktop.
Save mrahul17/d71a4ca6e617cd9f4d45 to your computer and use it in GitHub Desktop.
Encrypting Files in Linux
#Taken from
#http://askubuntu.com/questions/160253/encrypting-decrypting-a-single-file-in-ubuntu-12-04-lts/160334
Encrypt--> openssl des3 < youfile.txt > yourfile.txt.des3
Decrypt--> openssl des3 -d < yourfile.txt.des3 > yourfile.txt.decrypted
#http://stackoverflow.com/questions/16056135/how-to-use-openssl-to-encrypt-decrypt-files?noredirect=1&lq=1
Encrypt --> gpg --output encrypted.data --symmetric --cipher-algo AES256 un_encrypted.data
Decrypt --> gpg --output un_encrypted.data --decrypt encrypted.data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment