{"slug":"api-sitecheck-api-workers-dev-api-hash-7c07b4","title":"Hashes of a text or base64 input (up to 1 MB)","host":"api.sitecheck-api.workers.dev","method":"POST","resource":"https://api.sitecheck-api.workers.dev/api/hash","category":"code","description":"Hashes of a text or base64 input (up to 1 MB): MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC-32, and HMAC-SHA-256 or HMAC-SHA-512 when a key is given. Hex and base64 output. MD5 and CRC-32 are implemented here and checked against RFC 1321 and the standard CRC test vector. Body { input, encoding, alg","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":18,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:5042","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"algorithms":"md5,sha256,crc32","input":"abc"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"algorithms":{"description":"Comma-separated: md5, sha1, sha256, sha384, sha512, crc32, hmac-sha256, hmac-sha512 (default: all but the HMACs)","type":"string"},"encoding":{"description":"text (default) or base64","type":"string"},"input":{"description":"The text, or base64 when encoding is base64 (JSON body field)","type":"string"},"key":{"description":"Key for the HMAC algorithms, up to 1024 characters (JSON body field)","type":"string"}},"required":["input"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":18,"error":null}],"description_full":"Hashes of a text or base64 input (up to 1 MB): MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC-32, and HMAC-SHA-256 or HMAC-SHA-512 when a key is given. Hex and base64 output. MD5 and CRC-32 are implemented here and checked against RFC 1321 and the standard CRC test vector. Body { input, encoding, algorithms, key }. Pure code and WebCrypto, no outside request.","last_updated":"2026-10-15T19:53:07.452Z","schemes":["exact"]}