{"uid":"cap__5eTItOn40jay-0YJUphh","slug":"hash-text-md5-sha-1-sha-256-sha-512-74ce554f","name":"Hash Text (MD5 / SHA-1 / SHA-256 / SHA-512)","description":"Compute an MD5, SHA-1, SHA-256 or SHA-512 hex digest of text.","url":"https://x402.agentindex.world/hash/hash?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","title":"Text"},"algorithm":{"type":"string","title":"Algorithm","pattern":"^(md5|sha1|sha256|sha512)$"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pr9D5NKQdc90RDwYzawkP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a hex digest of any text string using a chosen algorithm: MD5, SHA-1, SHA-256, or SHA-512.","exampleAgentPrompt":"Hash the text 'Hello, world!' using SHA-256 and give me the hex digest.","exampleUseCases":[{"title":"Integrity check before file upload","prompt":"Take this file contents string and compute its SHA-256 hex digest so I can verify integrity on the other end: 'user_data_export_20240601_fullbackup'."},{"title":"Deduplication fingerprint for cache keys","prompt":"I need an MD5 hash of this URL query string to use as a cache key — hash 'search?q=bitcoin+price&lang=en&page=2' with md5."},{"title":"Password hashing for audit log","prompt":"Hash the string 'MyS3cr3tP@ssw0rd!' using SHA-512 so I can store a non-reversible fingerprint in the audit log."}],"resultDescription":"Returns the hex-encoded digest of the provided text using the requested algorithm (md5, sha1, sha256, or sha512). The response is a deterministic fixed-length hex string: 32 chars for MD5, 40 for SHA-1, 64 for SHA-256, 128 for SHA-512.","failureModes":["Missing 'text' parameter — returns 400 or validation error","Invalid 'algorithm' value not matching the enum (md5|sha1|sha256|sha512) — returns 400 validation error","Empty text string may return empty-string hash (algorithm-dependent behavior)","Network timeout or service unavailability — no hash returned","Payment failure via x402 — endpoint returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call hash of a text string without managing a local crypto library or runtime environment. Ideal for serverless agents, sandboxed environments, or workflows where installing cryptographic dependencies is impractical. Supports four standard algorithms in a single endpoint, making it versatile for checksums, cache keys, integrity verification, or fingerprinting tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:52.238Z","isFirstParty":false,"canonicalSlug":"hash-text-md5-sha-1-sha-256-sha-512-74ce554f"}