$init_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC); $init_iv = mcrypt_create_iv($init_size, MCRYPT_RAND); $data = $init_iv . mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $data, MCRYPT_MODE_CBC, $init_iv);
How to convert this encryption method to openssl encryption method
I browsed the Internet and said that MCRYPT_RIJNDAEL_256 does not match openssl aes-256-cbc.
So how should I solve the above problem?