hmac
Generate an HMAC signature for a message using a secret key and chosen hash algorithm. Supports hex or base64 output.
Instructions
Generate an HMAC signature for a message
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 | Secret key | |
| message | Yes | Message to sign | |
| encoding | No | Output encoding (default: hex) | |
| algorithm | No | Hash algorithm (default: sha256) |