微信商户实名认证获取证书接口,获取证书后解密报错tag mismatch,请问下如何解决?
发布于 5 年前 作者 yanyi 8628 次浏览 来自 官方Issues

下载证书之后用的AesUtil无法解密:报错 javax.crypto.AEADBadTagException: Tag mismatch!

javax.crypto.AEADBadTagException: Tag mismatch!


at com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:524)

at com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1023)

at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:960)

at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:824)

at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)

at javax.crypto.Cipher.doFinal(Cipher.java:2165)


回到顶部