Last Updated: February 25, 2016
·
1.119K
· orby

Encrypt/decrypt a file on Mac/Linux

  • Open Terminal and issue this command:

openssl des3 -salt -in filename.txt -out filename.txt.encrypted

Replace filename.txt with the name of the file you want to encrypt :)

  • Decrypt the encrypted file:

openssl des3 -d -salt -in filename.txt.encrypted -out filename.txt.decrypted

Never ever forget the password you used, you must have it to decrypt the file...

Use at your own risk.