hmac_verify
Verify a webhook HMAC signature (GitHub / Stripe / Slack / raw schemes). Computes the expected digest, compares in constant time, and checks the replay window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algo | No | sha256 (default) | sha1 | sha512 | |
| scheme | No | raw | github | stripe | slack (default raw) | |
| secret | Yes | Shared signing secret | |
| payload | No | Raw request body, byte-for-byte | |
| signature | No | Signature header to check (optional; omit to just compute the expected value) | |
| timestamp | No | Unix seconds or ISO time — required for stripe/slack | |
| tolerance_seconds | No | Replay window (default 300) |