在php中将mcrypt_dycrypt转换为openssl_decrypt

时间:2021-08-01 16:10:47

标签: php

mcrypt_decrypt() 方法不适用于 PHP 7.2 版。 那么,如何使用 PHP 解密加密的 JSON 数据? 这是我当前的代码。但是,它现在不起作用。

$result = 'encrypted string';

$key = substr(str_pad($UCPassword, 8, " "), 0, 8);
$jsonResult = mcrypt_decrypt(MCRYPT_DES, $key, base64_decode($result), MCRYPT_MODE_CBC, $IV);

0 个答案:

没有答案