Friday, February 24, 2012

How to encrypt and decrypt a file using openssl

Following command encrypts a file using a passcode
Encrypt
     openssl enc -e -aes-256-cbc -salt -in aman -out aman.ser

Decrypt
     openssl enc -d -aes-256-cbc -salt -in aman -out aman.ser

No comments:

Post a Comment