{"uid":"cap_YEFQelSn-ThMS0Z7wKwkL","slug":"hash-text-25da2ec9","name":"Hash Text","description":"Generate a cryptographic hash of text: SHA-256 (default), SHA-384, SHA-512, SHA-1 or MD5, returned as a hex digest. Pure CPU, instant, no upstream. Use to fingerprint a string, verify a payload or compute a checksum.","url":"https://api.gadgethumans.com/hash?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text to hash"},"algorithm":{"type":"string","description":"SHA-256 (default), SHA-384, SHA-512, SHA-1 or MD5"}}}}},"output":{"type":"object","properties":{"example":{"ok":true}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"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_uEXwow3A5ckfSZanjnQGK","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":"Generate a cryptographic hex-digest hash of any string using SHA-256, SHA-384, SHA-512, SHA-1, or MD5","exampleAgentPrompt":"Can you give me the SHA-256 hex digest of the string 'Hello, World!'?","exampleUseCases":[{"title":"Payload integrity verification","prompt":"Hash this JSON payload with SHA-256 so I can compare it against the checksum the server sent me: '{\"order_id\":12345,\"amount\":99.99}'"},{"title":"MD5 fingerprint for deduplication","prompt":"Generate an MD5 hash of this filename string 'report_Q4_2024_final_v2.pdf' — I want a compact fingerprint to deduplicate files in my database."},{"title":"SHA-512 content checksum","prompt":"Compute a SHA-512 hash of the text 'The quick brown fox jumps over the lazy dog' and give me the hex digest."}],"resultDescription":"Returns a JSON object with the hex-encoded cryptographic hash of the input text using the specified algorithm (SHA-256 by default). The response includes an ok flag and the hex digest string, computed entirely server-side with no external dependencies.","failureModes":["Missing 'text' query parameter — returns 400 or error response","Unsupported algorithm name — may return error or fall back to default SHA-256","Empty string input — still hashes successfully but may be semantically unintentional","Network timeout — unlikely given pure CPU computation but possible under load","Payment failure — x402 payment not accepted, returns 402"],"whenToPreferThis":"Choose this endpoint when you need a quick, server-side cryptographic hash of a text string without setting up a local crypto library. Ideal for agents operating in environments where native crypto functions are unavailable or when you need a consistent, reproducible hex digest for fingerprinting, deduplication, or integrity checks. Supports five common algorithms (SHA-256, SHA-384, SHA-512, SHA-1, MD5) in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:37:15.920Z","isFirstParty":false,"canonicalSlug":"hash-text-25da2ec9"}