Java解密用户信息时报错
解密前端通过wx.getUserInfo获取的数据时报错javax.crypto.BadPaddingException: pad block corrupted 后台代码: [代码]Cipher cipher = Cipher.getInstance([代码][代码]"AES/CBC/PKCS7Padding"[代码][代码],[代码][代码]"BC"[代码][代码]);[代码][代码] [代码][代码]Key sKeySpec = [代码][代码]new[代码] [代码]SecretKeySpec(keyByte, [代码][代码]"AES"[代码][代码]);[代码][代码] [代码] [代码] [代码][代码]cipher.init(Cipher.DECRYPT_MODE, sKeySpec, generateIV(ivByte));[代码][代码]// 初始化[代码][代码] [代码][代码]byte[代码][代码][] result = cipher.doFinal(content);[代码]错误信息: [图片]