Answer the question
In order to leave comments, you need to log in
How to rewrite mcrypt_decrypt function under PHP 7.4?
The mcrypt_decrypt function has been deprecated since php 7.1.
private function decode3DES($enc_str)
{
$key_hex = pack('H*', $this->secretKey);
$data_hex = pack('H*', $enc_str);
return mcrypt_decrypt(MCRYPT_3DES, $key_hex, $data_hex, MCRYPT_MODE_ECB);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question