Simple OpenSSL File Encrypt/Decrypt
Project Page: github/openssl-encrypt
Two paired CLI scripts which perform very simple AES-256 encryption of any file
using openssl aes-256-cbc
. A password is required for any encrypt or decrypt operations
encrypt.sh
decrypt.sh
Usage:
$ ls
1.jpg
2.jpg
$ ./encrypt.sh *.jpg
$ ls
1.jpg
1.jpg.enc
2.jpg
2.jpg.enc
$ rm *.jpg
$ ls
1.jpg.enc
2.jpg.enc
$ ./decrypt.sh *.enc
$ ls
1.jpg
1.jpg.enc
2.jpg
2.jpg.enc