{"uid":"cap_jyPzTTeNNJzB06QFmyn2A","slug":"x402-utils-cryptographic-hash-03f15890","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://qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/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":null,"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_WqIRUYUhzdndQjZD8wcQg","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 (Ethereum) hashes of text or binary data, returning results as hex and base64","exampleAgentPrompt":"Compute the SHA-256 and Keccak-256 hashes of the UTF-8 text 'Hello, world!' and give me the results in both hex and base64.","exampleUseCases":[{"title":"Ethereum contract data hashing","prompt":"I need the Keccak-256 hash of the hex bytes 0x48656c6c6f — give me both hex and base64 output, treating the input as hex-encoded bytes."},{"title":"File integrity checksum generation","prompt":"Generate SHA-256 and SHA-512 checksums of this text so I can verify it hasn't been tampered with: 'The quick brown fox jumps over the lazy dog'"},{"title":"Blockchain address derivation prep","prompt":"Compute the SHA3-256 and Keccak-256 hashes of this base64-encoded binary payload: dGVzdGRhdGE= — input is base64 encoded."}],"resultDescription":"Returns a JSON object with each requested hash algorithm as a key, each containing the hash digest in both 'hex' and 'base64' string formats. If no algorithms are specified, all six (md5, sha1, sha256, sha512, sha3-256, keccak256) are returned.","failureModes":["Input text exceeds 1 MB limit — request rejected","Invalid input encoding enum value — validation error returned","Unsupported algorithm name in algorithms array — validation error","Malformed base64 or hex input when input encoding is 'base64' or 'hex' — decoding error","Payment failure or insufficient USDC balance — 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need cryptographic hashes of text or binary data — especially when multiple algorithms are needed simultaneously, when Keccak-256 (Ethereum-native) is required, or when results in both hex and base64 are needed without any local computation. Ideal for agents operating in blockchain/Ethereum contexts or needing to verify data integrity without a local hashing library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:37:14.146Z","isFirstParty":false,"canonicalSlug":"x402-utils-cryptographic-hash-03f15890"}