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

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.

Inputs of Hash & HMAC Calculator
FieldTypeDefaultDescription
texttextarea—Text. Hashed exactly as entered (no trailing newline is added). Leave empty when you choose a file.
textFormatselect (utf8, hex, base64)"utf8"Text is
filefile—Or a file. Any file up to 100 MB.
algorithmsmultiselect (md5, sha1, sha224, sha256, sha384, sha512, sha3-256, sha3-512, blake2b512, blake2s256, crc32)["md5","sha1","sha256","sha512","sha3-256","blake2b512","crc32"]Algorithms
hmacKeytext—HMAC key (optional). With a key, an HMAC (RFC 2104) is computed instead of a plain hash.
hmacKeyFormatselect (utf8, hex, base64)"utf8"Key is
outputEncodingselect (hex, base64)"hex"Output
expectedtext—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)

{
  "mcpServers": {
    "hash-hmac-calculator": { "type": "http", "url": "https://hashhmaccalculator.usefulweb.site/mcp" }
  }
}