com.youzan.cloud.open.security.exception.DataSecurityException: code:1005,message:使用了错误的密钥进行加解密操作 kdtId:97693432 source:Z15nMtHJA3sRYLbqAg3H4Q==
at com.youzan.cloud.open.security.utils.SecretUtils.aesDecrypt(SecretUtils.java:164) ~[cloud-open-data-security-basic-sdk-1.0.8-RELEASE.jar!/:na]
at com.youzan.cloud.open.security.utils.SecretUtils.aesDecrypt(SecretUtils.java:142) ~[cloud-open-data-security-basic-sdk-1.0.8-RELEASE.jar!/:na]
at com.youzan.cloud.open.security.OpenClientSecretServer.decrypt(OpenClientSecretServer.java:96) ~[cloud-open-data-security-client-sdk-1.0.16-RELEASE.jar!/:na]
at com.youzan.cloud.open.security.SecretClient.decrypt(SecretClient.java:91) ~[cloud-open-data-security-client-sdk-1.0.16-RELEASE.jar!/:na]
at com.qlchat.youzanyun.service.YouZanYunMessageService.buildOrder(YouZanYunMessageService.java:450) [qlchat-youzanyun-service-1.0.0.jar!/:na]
at com.qlchat.youzanyun.service.YouZanYunMessageService.processTradePaidMsg(YouZanYunMessageService.java:168) [qlchat-youzanyun-service-1.0.0.jar!/:na]
at com.qlchat.youzanyun.controller.PushMessageController.lambda$message$0(PushMessageController.java:60) [classes!/:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_221]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_221]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_221]
Caused by: com.youzan.cloud.open.security.utils.CryptException: 使用了错误的密钥进行加解密操作
at com.youzan.cloud.open.security.utils.Cryptos.aes(Cryptos.java:204) ~[cloud-open-data-security-basic-sdk-1.0.8-RELEASE.jar!/:na]
at com.youzan.cloud.open.security.utils.Cryptos.aesDecrypt(Cryptos.java:166) ~[cloud-open-data-security-basic-sdk-1.0.8-RELEASE.jar!/:na]
at com.youzan.cloud.open.security.utils.SecretUtils.aesDecrypt(SecretUtils.java:161) ~[cloud-open-data-security-basic-sdk-1.0.8-RELEASE.jar!/:na]
... 9 common frames omitted
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
at com.sun.crypto.provider.CipherCore.unpad(CipherCore.java:975) ~[sunjce_provider.jar:1.8.0_231]
at com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1056) ~[sunjce_provider.jar:1.8.0_231]
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:853) ~[sunjce_provider.jar:1.8.0_231]
at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446) ~[sunjce_provider.jar:1.8.0_231]
at javax.crypto.Cipher.doFinal(Cipher.java:2164) ~[na:1.8.0_191]
at com.youzan.cloud.open.security.utils.Cryptos.aes(Cryptos.java:202) ~[cloud-open-data-security-basic-sdk-1.0.8-RELEASE.jar!/:na]
... 11 common frames omitted