手机号码解密偶尔错误是什么原因?
button组件、微信版本:8.0.11、在获取手机号码发送自后台服务解密时候报错,但不是每次都出现,至少在开发测试中没出现过,只是在线上正式版中偶尔出现。
错误日志如下:
javax.crypto.BadPaddingException: pad block corrupted
at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$BufferedGenericBlockCipher.doFinal(Unknown Source)
at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
at javax.crypto.Cipher.doFinal(Cipher.java:2165)