search

Home  >  Q&A  >  body text

openssl - Problem in decrypting WeChat applet user information in php7.1.3 version

In the WeChat applet, user information needs to be decrypted. The decryption code officially provided by WeChat uses the decryption method related to mcrypt, but mcrypt is abandoned in php7.1.and higher versions. If php If the version is 7.1.or higher, decryption will fail. Is there a good alternative to solve this problem? Because the PHP version on my server is 7.1.3 and the server is running, there is no way to lower the PHP version. Want to find a better solution?

黄舟黄舟2781 days ago509

reply all(1)I'll reply

  • PHP中文网

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

    I have never used mcrypt, but mcrypt and openssl are two class libraries. I don’t know why you added the openssl label to the question label. I don’t know if you have tried the corresponding function of openssl.

    reply
    0
  • Cancelreply