Posted in Command Line, Linux Encrypt/Decrypt File using OpenSSL in Linux Binny V A September 4, 2008 Leave a Comment on Encrypt/Decrypt File using OpenSSL in Linux 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 Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.