{"uid":"cap_uWulkxmLc4nAIV8uKiLdq","slug":"x402-utils-cryptographic-hash-85505a00","name":"x402 Utils – Cryptographic Hash","description":"MD5, SHA-1, SHA-256, SHA-512, SHA3-256 and Keccak-256 (Ethereum) of a text, or of bytes given as hex or base64, as hex and base64.","url":"https://utils.kagurazaka.dev/v1/hash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"what to hash (up to 1 MB)"},"input":{"enum":["utf8","hex","base64"],"type":"string","description":"how text is encoded (default utf8)"},"algorithms":{"type":"array","items":{"enum":["md5","sha1","sha256","sha512","sha3-256","keccak256"],"type":"string"},"description":"which hashes (default all)"}}},"responseSchema":{"type":"json","example":{"bytes":5,"sha256":{"hex":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"},"keccak256":{"hex":"1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UW-Xib3aZUeF1KNZyFnBD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes MD5, SHA-1, SHA-256, SHA-512, SHA3-256, and Keccak-256 hashes of text or binary data (as UTF-8, hex, or base64), returning results in both hex and base64 encodings.","exampleAgentPrompt":"Hash the text 'hello world' using SHA-256 and Keccak-256 and give me the results in hex.","exampleUseCases":[{"title":"Ethereum smart contract input hashing","prompt":"Compute the Keccak-256 hash of the UTF-8 string 'transfer(address,uint256)' — I need the hex output for an Ethereum function selector."},{"title":"File integrity checksum verification","prompt":"Hash these bytes (given as base64: 'SGVsbG8gV29ybGQ=') using SHA-256 and SHA-512 so I can verify the file hasn't been tampered with."},{"title":"Multi-algorithm digest for audit log","prompt":"Give me the MD5, SHA-1, and SHA-256 hashes of the text 'audit-record-20240601-user42' encoded as UTF-8, so I can store all three digests in our audit trail."}],"resultDescription":"A JSON object containing the byte count of the input and, for each requested algorithm, an object with 'hex' and optionally 'base64' representations of the digest. For example: {\"bytes\":5,\"sha256\":{\"hex\":\"2cf24dba...\"},\"keccak256\":{\"hex\":\"1c8aff95...\"}}","failureModes":["Input text exceeds 1 MB limit — request rejected","Invalid encoding type specified for 'input' field — validation error","Unrecognized algorithm name in 'algorithms' array — validation error","Malformed hex or base64 in 'text' field when input encoding is hex or base64 — parse error","Missing 'text' field — required parameter error"],"whenToPreferThis":"Choose this endpoint when you need to compute one or more cryptographic hashes of a string or binary payload in a single API call, especially when multiple algorithms are needed simultaneously or when Ethereum-compatible Keccak-256 is required. It is particularly useful for agents that need data integrity checksums, blockchain function selectors, or audit digests without running local code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:12.606Z","isFirstParty":false,"canonicalSlug":"x402-utils-cryptographic-hash-85505a00"}