Encrypt files with OpenSSL
Need to protect sensitive information? Then you need an encryption program. Luckily most linux distrubtions come with openSSL already installed. I’ve tested this on openSuse and Ubuntu and both seem to have the package right out of the box.
To encrypt a file: openssl des3 -salt -in existing_file.txt -out file.des3
The above will prompt for a password, or you can put it in with a -k option (as shown below), assuming you’re on a trusted server.
To Decrypt: openssl des3 -d -salt -in file.des3 -out file.txt -k mypassword
Need to encrypt what you type? Enter the following, then start typing and ^D to end.
$ openssl des3 -salt -out new_file_name.txt
Also See:














Post a comment