HMAC verify
Try it interactively →POST /api/hmac-verifyVerify an HMAC signature against a payload + secret. Constant-time comparison so timing attacks cannot leak the signature byte-by-byte.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| data* | string | — | Message that was signed. |
| secret* | string | — | Shared secret — must match the signer's. |
| signature* | string | — | Candidate signature to verify. |
| algorithm | enum (SHA-1 | SHA-256 | SHA-384 | SHA-512) | "SHA-256" | Hash algorithm — must match the signer. |
| signatureEncoding | enum (hex | base64 | base64url) | "hex" | Encoding of the supplied signature. |
| dataFormat | enum (text | base64) | "text" | How `data` is encoded. `text` = UTF-8; `base64` for binary. |
| secretFormat | enum (text | base64) | "text" | How `secret` is encoded. |
Response
Modes: json. Cache: not cacheable.