I'm using the following method to decrypt the data,
$clear = openssl_decrypt($data, 'aes-256-cbc', $pass, 0, $iv);
$iv is always null, but it works
But when I use openssl to decrypt the same file (the data is base64 encoded),
openssl aes-256-cbc -d -a -in encrypted
After inputing the password, it says error reading input file, totally weird error
Any ideas?
-base64flag?