Created
February 29, 2012 22:33
-
-
Save olooney/1945016 to your computer and use it in GitHub Desktop.
Use openSSL to simply encrypt a file
This file contains 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
# snippet from http://www.madboa.com/geek/openssl/#encrypt-simple | |
# encrypt file.txt to file.enc using 256-bit AES in CBC mode | |
openssl enc -aes-256-cbc -salt -in file.txt -out file.enc | |
To decrypt file.enc you or the file’s recipient will need to remember the cipher and the passphrase. | |
# decrypt binary file.enc | |
openssl enc -d -aes-256-cbc -in file.enc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment