Monday, September 12, 2011

[Linux] Quick encrypt a file with openssl.

Sometimes you may need to a quick solution for encrypting a file. You can use openssl for this.

Encryption: 

openssl aes-256-cbc -in myFile.txt -out encrypted.enc

Decryption:

openssl aes-256-cbc -d -in encrypted.enc -out myOutput.txt

Note: This is also platform independent.

No comments:

Post a Comment