Hash text or bytes
hash_dataCompute MD5, SHA-1, SHA-256, and SHA-512 for UTF-8 text or base64 bytes. Pass hmacKey for HMAC and expected to see which digest matches.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hash_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | UTF-8 text to hash. Use this or base64. | |
| base64 | No | Raw bytes as standard base64. | |
| hmacKey | No | UTF-8 HMAC key. Omit it for a plain digest. | |
| expected | No | Hex or base64 digest to compare. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hmac | Yes | ||
| hashes | Yes | ||
| matches | Yes |