Wednesday, December 27, 2017

Decrypt Files from QNAP with OpenSSL

If you have encryption enabled on your QNAP storage, to decrypt it, do the following.

Decrypt one file
     openssl enc -d -aes-256-cbc -k <decrypt password> -in filename.jpg -out filename.jpg


Decrypt multiple files in a folder.
     for f in * ; do [ -f $f ] && openssl enc -d -aes-256-cbc -k <decrypt password> -in $f -out _$f;