Can MCrypt rijndael-256 be converted to OpenSSL aes-256-ecb? How to convert it?
皮蛋瘦肉
皮蛋瘦肉 2022-02-28 16:31:48
0
0
1077
        $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?

皮蛋瘦肉
皮蛋瘦肉

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template