Easy File Encryption On Ubuntu Linux with OpenSSL

advertisement logo

 

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


Share this post

Tags: , , , , , , , , ,

Keep updated with the latest posts, be a part of over 1,000 subscribers! : email iconSubscribe to your email

One smashing comment for this post.

  1. hari Said:

    Gud information…

    For RHEL 6.0 material….

    http://linuxcourse.info/linux/linux-material/red-hat-enterprise-linux-6/

Leave a Comment

Subscribe by email

Enter your Email