Heim  >  Fragen und Antworten  >  Hauptteil

openssl - php7.1.3版本中解密微信小程序用户信息问题

微信小程序中,需要对用户信息进行解密,微信官方提供的解密代码用的是mcrypt相关的解密方法,但mcrypt在php7.1.以及更高版本中被废弃,如果php版本是7.1.或者更高,解密会失败,有没有好的替代方法来解决此问题?因为我的服务器上的PHP版本是7.1.3,服务器在运行中,没办法降低php版本,想寻求更好的解决办法?

黄舟黄舟2688 Tage vor444

Antworte allen(1)Ich werde antworten

  • PHP中文网

    PHP中文网2017-05-16 13:02:26

    这个mcrypt没有用过,不过mcrypt跟openssl是两个类库,不清楚你为啥在问题标签上加上openssl的标签。不知道你有没有尝试过openssl对应的函数。

    Antwort
    0
  • StornierenAntwort