按照官方提供的解密源码;

数据库记录死在:

$ciphertext_dec = base64_decode($encrypted);

            $module = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_CBC, '');

            $iv = substr($this->key, 0, 16);

            mcrypt_generic_init($module, $this->key, $iv);



//解密

            $decrypted = mdecrypt_generic($module, $ciphertext_dec);

            mcrypt_generic_deinit($module);

            mcrypt_module_close($module);

 

linux php.ini 加

extension=mcrypt.so
windows php.ini
extension=mcrypt.dll  

 

相关文章:

  • 2021-10-23
  • 2021-06-09
  • 2022-02-09
  • 2021-07-15
  • 2021-06-25
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-08
  • 2021-12-24
  • 2021-05-22
  • 2021-12-04
  • 2022-12-23
  • 2021-06-14
相关资源
相似解决方案