AES-256 CBC encryption for fun and profit
Generating a new encryption key
openssl rand -base64 512 | tr -d '\r\n' > ./key-dir/production-secret-key.aes256
Encrypting a file
openssl aes-256-cbc -a -salt -in production.tar.bz2 -out production.tar.aes256 -pass file:./key-dir/production-secret-key.aes256
Decrypting a file
openssl aes-256-cbc -d -a -salt -in production.tar.aes256 -out production.tar.bz2 -pass file:./key-dir/production-secret-key.aes256
Written by Gabriel Falcão
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Security
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#