search

Home  >  Q&A  >  body text

Can MCrypt rijndael-256 be converted to OpenSSL aes-256-ecb? How to convert it?

        $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?

皮蛋瘦肉皮蛋瘦肉1009 days ago1085

reply all(0)I'll reply

No reply
  • Cancelreply