AES Decryption: javax.crypto.BadPaddingException: pad block corrupted in Android

ⅰ亾dé卋堺 提交于 2019-12-03 09:15:38

If the server encounters unknown encodings that don't map to specific characters then the key will not transfer properly and fail once in a while, resulting in an incorrect key. The ciphertext is encoded using base64 so that's probably OK, but your key may not be so lucky.

Note that any change in the key or the last blocks of the ciphertext is likely to result in a BadPaddingException.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!