php 7 微信推送消息aes加解密 openssl_decrypt() 代替 mcrypt_module_open() 方法
原加密代码:
//获得16位随机字符串,填充到明文之前
$random = $this->getRandomStr();
$text = $random . pack("N", strlen($text)) . $text . $appid;
// 网络字节序
$size = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
$module = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '',
转载
2022-01-05 18:00:08 ·
412 阅读 ·
0 评论