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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>",
"key": "<key>"
},
"name": "hmac"
}
}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 |