API & MCP
Everything a person can do on Hash & HMAC Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://hashhmaccalculator.usefulweb.site/api/v1/calculate– run Hash & HMAC CalculatorGET https://hashhmaccalculator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Hash & HMAC Calculator
Computes MD5, SHA-1, SHA-224/256/384/512, SHA3-256/512, BLAKE2b-512, BLAKE2s-256 and CRC-32 of text or a file, or an HMAC with your key, in hex or Base64, and checks a published checksum against all of them.
| Field | Type | Default | Description |
|---|---|---|---|
text | textarea | — | Text. Hashed exactly as entered (no trailing newline is added). Leave empty when you choose a file. |
textFormat | select (utf8, hex, base64) | "utf8" | Text is |
file | file | — | Or a file. Any file up to 100 MB. |
algorithms | multiselect (md5, sha1, sha224, sha256, sha384, sha512, sha3-256, sha3-512, blake2b512, blake2s256, crc32) | ["md5","sha1","sha256","sha512","sha3-256","blake2b512","crc32"] | Algorithms |
hmacKey | text | — | HMAC key (optional). With a key, an HMAC (RFC 2104) is computed instead of a plain hash. |
hmacKeyFormat | select (utf8, hex, base64) | "utf8" | Key is |
outputEncoding | select (hex, base64) | "hex" | Output |
expected | text | — | Expected hash to compare (optional). Paste a published checksum (hex or Base64); it is compared with every computed value. |
Example request
Hashes of "hello world"
curl -X POST https://hashhmaccalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"text":"hello world"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://hashhmaccalculator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
hash_hmac_calculator - Local stdio connector:
node src/mcp-stdio.ts --tool=hash-hmac-calculator
{
"mcpServers": {
"hash-hmac-calculator": { "type": "http", "url": "https://hashhmaccalculator.usefulweb.site/mcp" }
}
}