V3微信支付回调 解密报错 cryptography.exceptions.InvalidTag?
参照 https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/zheng-shu-he-hui-tiao-bao-wen-jie-mi#jie-mi 解密过程报cryptography.exceptions.InvalidTag 解密代码-python3 def decrypt(self, nonce, ciphertext, associated_data): key_bytes = str.encode(self.wpc_key) nonce_bytes = str.encode(nonce) ad_bytes = str.encode(associated_data) data = base64.b64decode(ciphertext) print(data) aesgcm = AESGCM(key_bytes) return aesgcm.decrypt(nonce_bytes, data, ad_bytes)