如何解决获取手机号码发于服务器解密时偶尔失败问题?
button组件中,获取手机号,发送于后台解密时偶尔失败,在体验与开发环境下无此问题,只有线上正式环境出现过。
错误日志如下:
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)