微信小程序获取用户解密的Session_key 然后对 encryptedData进行解密 偶尔报错 时间长了之后会报内存溢出: java.lang.OutOfMemoryError: GC overhead limit exceeded at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:426) at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322) at
/** * 对数据进行签名 * $data = 'If you are still new to things, we’ve provided a few walkthroughs to get you started.'; 签名数据 * $privatekeyFile = '/path/to/private.key'; 私钥 * $passphrase = ''; 密码 */ function sign($data, $privatekeyFile, $passphrase) { // 摘要及