php: mcrypt_encrypt to openssl_encrypt, and OPENSSL_ZERO_PADDING problems
I have this mcrypt_encrypt call, for a given $key, $message and $iv: $string = mcrypt_encrypt(MCRYPT_3DES, $key, $message, MCRYPT_MODE_CBC, $iv); I'd like to change the mcrypt_encrypt call to an openssl_encrypt one, to future-proof this. By having $mode = 'des-ede3-cbc' or $mode = '3DES'; and $options = true I get the more similar response, but not identical. Is there other way to call it to get a perfect match? I'm getting this (base64_encoded) for a lorem-ipsum $message + $key combinations, so I'm starting to believe one function or the other are padding somewhat the message before