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?
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.