JAVA AES加解密问题(解密时出错)

javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if 

解密时出现了这样的问题

最后通过手动设置 SecureRandom来解决问题

 

 转自https://wenku.baidu.com/view/b968921514791711cc791778.html

posted @ 2020-08-13 15:35  旧时繁华  阅读(1108)  评论(0编辑  收藏  举报