您好,我这里测试不通呢?JAVA后台加密后前台解密为空,前台加密后后台解密报错了。请问您能帮忙看看吗?
是前台没有BASE64编码吗?
Exception in thread "main" javax.crypto.BadPaddingException: Decryption error at sun.security.rsa.RSAPadding.unpadV15(RSAPadding.java:383) at sun.security.rsa.RSAPadding.unpad(RSAPadding.java:294) at com.sun.crypto.provider.RSACipher.doFinal(RSACipher.java:363) at com.sun.crypto.provider.RSACipher.engineDoFinal(RSACipher.java:389) at javax.crypto.Cipher.doFinal(Cipher.java:2222) at com.ruoyi.web.utils.RSAUtil.doFinal(RSAUtil.java:71) at com.ruoyi.web.utils.RSAUtil.decryptByPrivateKey(RSAUtil.java:36) at com.ruoyi.web.utils.UniRSAUtil.decode(UniRSAUtil.java:35) at com.ruoyi.web.utils.UniRSAUtil.main(UniRSAUtil.java:60)
依心而行
- 发布:2020-10-20 10:12
- 更新:2020-12-06 10:11
- 阅读:844
依心而行 (作者)
好的,谢谢你,问题已解决
2020-12-10 17:14