0

i've got a string which has been already encrypted by mcrypt_encrypt, the encrypt code is

mcrypt_encrypt(MCRYPT_RIJNDAEL_128,$key,$strInput,MCRYPT_MODE_CBC,$iv);

and my question is, is is possible to decypt it with openssl_decrypt, i've tried it with different args,but still doesn't work

openssl_decrypt($strInput,'aes-128-cbc',$key,OPENSSL_RAW_DATA,$iv);

any suggestion for me? thanks a lot!

chd
  • 9
  • 1

0 Answers0