# Hash Comparison Tool — REST API endpoint `hash-comparison-tool`

Hash text with SHA-1, SHA-256, SHA-384, or SHA-512 and compare the hex digest with an expected hash. Returns the computed hash, the normalized expected hash, and match true/false (null when no expected hash is given). Useful to verify checksums and integrity.

- Category: security
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/hash-comparison-tool/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/hash-comparison-tool/
- Same tool on the other surface: https://findutils.com/mcp/hash-comparison-tool/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/hash-comparison-tool/execute \
  -H "Content-Type: application/json" \
  -d '{
    "text": "hello",
    "expected_hash": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/hash-comparison-tool
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `text` | string | yes | The text to hash. |
| `expected_hash` | string | no | The hex digest to compare against. Case and whitespace are ignored. |
| `algorithm` | string (SHA-1 \| SHA-256 \| SHA-384 \| SHA-512) | no | Hash algorithm. Default: SHA-256. Default: `"SHA-256"`. |

Example arguments (verified):

```json
{
  "text": "hello",
  "expected_hash": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:hash_comparison_tool`. Full MCP reference: https://findutils.com/mcp/hash-comparison-tool/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
