HMAC Verify
hmac_verifyVerify an HMAC signature for a message using a secret key. Returns a boolean indicating whether the provided signature matches the computed one.
Instructions
Check a message against an expected HMAC using a constant-time comparison. Use this to validate an inbound webhook signature rather than comparing strings yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | Yes | ||
| message | Yes | ||
| algorithm | No | sha256 | |
| signature | Yes | The signature to check, hex or base64 |