Here’s an easy way to encrypt your file using OpenSSL. The general syntax is:
openssl enc (cipher) -e -in (input file) -out (output file)
so to encrypt a “plaintext.txt” file, using aes256, you only need to run this command:
openssl enc aes256 -e -in plaintext.txt -out encrypted.txt
Similarly, to decrypt the file, you can run the command:
openssl enc aes256 -d -in encrypted.txt -out decrypted.txt
Gud information…
For RHEL 6.0 material….
http://linuxcourse.info/linux/linux-material/red-hat-enterprise-linux-6/