Encrypt/Decrypt File using OpenSSL in Linux

Tagged with: , , , , , ,

Works on OS X, Linux, anywhere with OpenSSL installed:

To encrypt a file:


openssl des3 -salt -in infile.txt -out encryptedfile.txt

To decrypt the file:


openssl des3 -d -salt -in encryptedfile.txt -out normalfile.txt

Leave a Reply