Encrypting a file using OpenSSL

To encrypt a file, run

To decrypt, use

You can use -k option to provide password in commend line itself so it won’t prompt for password.

Here is a script i use to take backup

openssl

Encrypt