Last active
April 15, 2017 09:45
-
-
Save mrahul17/d71a4ca6e617cd9f4d45 to your computer and use it in GitHub Desktop.
Encrypting Files in Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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