javax.crypto.IllegalBlockSizeException: last block incomplete in decryption
用使用AES加密后还需使用Base64编码方式再进行一次加密,所以解密的时候需要先用Base64解密,再用AES的方法解密之后再次报错同样的错误,求解析。
javax.crypto.IllegalBlockSizeException: last block incomplete in decryption
at org.bouncycastle.jce.provider.JCEBlockCipher.engineDoFinal(Unknown Source)
at javax.crypto.Cipher.doFinal(Cipher.java:2164)
at com.*.common.utils.AESUtils.decryptAES(AESUtils.java:126)
at com.*.common.utils.AESUtils.decode(AESUtils.java:186)
at com.*.yyinfo.utils.BusinessUtils.ajaxData(BusinessUtils.java:97)
at com.*.yyinfo.utils.BusinessUtils.ajaxDataObj(BusinessUtils.java:67)