php的openssl_decrypt参数问题
1. 运行环境
1). 当前使用的 Laravel 版本?
laravel5.1
2). 当前使用的 php/php-fpm 版本?
PHP 版本:php5.6
php-fpm 版本:php5.6
2. 问题描述?
openssl_decrypt(
string $data
,
string $cipher_algo
,
string $passphrase
,
int $options
= 0,
string $iv
= “”,
?string $tag
= null
,
string $aad
= “”
): string|false
php7.1.0添加了 tag 和 aad 参数,php5只有五个参数,
微信支付V3回调解密里要用到tag 和 aad,php5的openssl_decrypt加了这两个会报错,提示只有五个参数,
想问下不升级php的情况下有没有办法解密,多的 tag 和 aad怎么处理才能解密成功
使用aes_256_gcm
推荐文章: