I am upgrading php 7.x to 8.0 in CodeIgniter in local wamp server in windows 10. I found this error :-
Message: Undefined constant "MCRYPT_RIJNDAEL_128"
My code is like this:-
$password = trim(openssl_encrypt(MCRYPT_RIJNDAEL_128, $key, $encrypted, MCRYPT_MODE_CBC, $iv), "\0..\32");