Wednesday, January 02, 2008

Howto encrypt/decrypt a file using openssl

To encrypt:
# openssl bf -a -salt -in original_file.odt -out encrypted_file.bf
you will be prompt to type and then re-type a password

here: bf - stands for the Blow Fish algorithm

To decrypt:
# openssl bf -d -salt -a -in ./encrypted_file1.bf -out ./original_file.odt
use the same password when asked.

-d stands for decryption

For more information and examples type: man enc

No comments: