HMAC (SHA-256/384/512/1, MD5), e.g. to check a webhook signature
hmacHMAC (SHA-256/384/512/1, MD5), e.g. to check a webhook signature. Computes HMAC of a message with a key (text, hex or base64). Optionally compares against an expected signature in constant time and reports whether it matches. Keys are not stored or logged. Price: $0.003 USDC per call via x402 (eip155:8453).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| message | Yes | ||
| expected | No | Optional signature to compare (hex or base64, optional "sha256=" prefix) | |
| algorithm | No | sha256 | |
| keyEncoding | No | utf8 |