{"slug":"api-duoleads-com-v1-code-hash-74df5b","title":"Compute a cryptographic digest of supplied data","host":"api.duoleads.com","method":"GET","resource":"https://api.duoleads.com/v1/code/hash","category":"code","description":"Compute a cryptographic digest of supplied data: SHA-256, SHA-384, SHA-512, SHA-1, SHA3-256, SHA3-512, Keccak-256, BLAKE2b-256 and BLAKE2b-512, plus HMAC with any of them. Input is UTF-8 text, base64 or hex bytes; output is hex, base64, base64url or base32. Returns the digest, the byte length of the","price_listed":0.05,"price_asked":0.05,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":19,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"algo":"sha256","data":"hello"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"algo":{"description":"Digest algorithm.","enum":["sha256","sha384","sha512","sha1","sha3-256","sha3-512","keccak256","blake2b-256","blake2b-512"],"maxLength":64,"type":"string"},"data":{"description":"Input data, interpreted per encoding. At most 8192 characters. An empty value hashes the empty string.","maxLength":8192,"type":"string"},"encoding":{"default":"utf8","description":"Encoding of data: utf8 (default), base64, base64url or hex.","enum":["utf8","base64","base64url","hex"],"maxLength":64,"type":"string"},"hmac_key":{"description":"If present, computes HMAC with this key.","maxLength":512,"type":"string"},"hmac_key_encoding":{"default":"utf8","description":"Encoding of hmac_key, as encoding.","enum":["utf8","base64","base64url","hex"],"maxLength":64,"type":"string"},"out":{"default":"hex","description":"Digest output encoding: hex (default), base64, base64url or base32.","enum":["hex","base64","base64url","base32"],"maxLength":64,"type":"string"}},"required":["algo","data"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"data":{"type":"object"},"meta":{"properties":{"computed_at":{"type":"string"},"deterministic":{"type":"boolean"},"disclaimer":{"type":"string"},"price_usd":{"type":"string"},"request_id":{"type":"string"},"sources":{"type":"array"}},"required":["request_id","computed_at","price_usd","deterministic","disclaimer"],"type":"object"},"ok":{"const":true,"type":"boolean"},"route":{"type":"string"},"version":{"type":"string"}},"required":["ok","route","version","data","meta"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.05,"price_match":true,"latency_ms":19,"error":null}],"description_full":"Compute a cryptographic digest of supplied data: SHA-256, SHA-384, SHA-512, SHA-1, SHA3-256, SHA3-512, Keccak-256, BLAKE2b-256 and BLAKE2b-512, plus HMAC with any of them. Input is UTF-8 text, base64 or hex bytes; output is hex, base64, base64url or base32. Returns the digest, the byte length of the input, and the exact algorithm identifier used.","last_updated":"2026-09-28T23:38:42.828Z","schemes":["exact"]}