Encrypt/Decrypt a File using OpenSSL

Alright so here’s the deal, you can use command line openssl to quickly (depending on the file size)  encrypt a bunch of files or whatever you want.

openssl enc -aes-256-cbc -pass pass:PUTAPASSWORDHERE -e -in ENCRYPTTHIS.tgz -out TOTALLY_ENCRYPTED.secret

THE PASSWORD ABOVE IS IMPORTANT. You’ll need it if you intend on decrypting the data at some point:

TO DECRYPT:

openssl aes-256-cbc -d -in TOTALLY_ENCRYPTED.secret  -out Decrypted.tgz -pass pass:PUTAPASSWORDHERE