Check HMAC-SHA256 signatures with constant-time comparison.
Constraints
Example
>>> verify_hmac('hello', 'secret', '88aab3ede8d5ad9a1b8e8f3b8b2c4e5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c')
True
>>> verify_hmac('hello', 'secret', '0000000000000000000000000000000000000000000000000000000000000000')
False
>>> verify_hmac('hello', 'secret', 'nothex')
False
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints