我有以下代码:
secret = b'SECRETHERE'
digester = hmac.new(secret, request.data , hashlib.sha256)
calculated_signature = digester.hexdigest()
print(calculated_signature)
expected_signature = request.headers.get('X-WC-Webhook-Signature')
print(expected_signature)
我得到了意外的结果:
> e1b*******************************************************2ed20
> 4b5******************************I/B9k0C7SA=
有人可以帮我弄清楚吗?
谢谢!