Trying to decrypt some cipher text that was generated by an OpenSSL() call from PHP in an outside system.
Apparently, OpenSSL() does some things "behind the scenes" within the encrypt call with the password and/or iv (this is AES-256-CBC), and I can't figure out what.
Knowing the cipher text, password, and IV, I am unable to decypt it.
Anyone know exactly what OpenSSL_encrypt() does with the password and IV that it gets, or what it expects in terms of the format of those (i.e. assumes they are in Hex, base 64, or whatever)? The OpenSSL_decrypt() call is being handed the following:
CipherTest (base 64): M2VyRThFSkVUZW5uc0Jna0h0VEFMUT09
Plain Text result should be: 12345678
But when I try using these values with other routines, I am unable to dervie the plain text. I think the problem lies with the IV, but I am not positive.