You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
解密使用PKCS5PADDING没有遇到过错误吗
有些加密信息解密的时候报
javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:989) ~[?:?]
Activity
sinofool commentedon Apr 12, 2018
没有遇到过,看异常是结尾没有补齐数据。是不是没传完?
FS1360472174 commentedon Apr 15, 2018
不是,官网说的是用7PADDING,但是实际用5也可以解密。
估计有可能是频繁更新session-key不一致导致的