Encrypt and decrypt files with OpenSSL

07:08 PM by Christian Koch

Filed under Commands

Last modified Friday January 18th, 2013

To encrypt a file, in my example original.file on your terminal using openssl use the following command:

openssl bf -in original.file -out encrypted.file

This command encrypts the original.file using blowfish cipher. If you want to use another encryption take a look at the man pages of openssl.

To decrypt encrypted.file use the following command:

openssl enc -d -bf -in encrypted.file -out decrypted.file

That’s it.


Related Articles

                                                          Leave a Comment