{"uid":"cap_D-zRcvkXGtXuiEYNzM0fy","slug":"saylor-innovations-text-hash-0dae3427","name":"Saylor Innovations Text Hash","description":"SHA-256 hash of any text, plus SHA-1, SHA-512 and MD5 - send text, get the hash digest as hex or base64","url":"https://saylorinnovations.com/api/text/hash?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text to hash (up to 20000 characters)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["algorithm","digest"],"properties":{"note":{"type":"string","description":"Caveat or context for reading the result"},"digest":{"type":"string"},"encoding":{"type":"string","description":"Encoding used"},"algorithm":{"type":"string"},"checked_at":{"type":["string","null"],"description":"Time the check was run (UTC)"},"input_bytes":{"type":"number","description":"Input, in bytes"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J925wOVOkogpZIoHtfRTt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes cryptographic hash digests (SHA-256, SHA-1, SHA-512, MD5) for any input text, returning the result as hex or base64","exampleAgentPrompt":"Can you compute the SHA-256 hash of the text 'Hello, world! This is my verification string.' and give me the hex digest?","exampleUseCases":[{"title":"Integrity check for stored content","prompt":"Hash this configuration string with SHA-256 so I can store the digest and verify it hasn't been tampered with later: 'db_host=localhost;db_port=5432;db_name=production'"},{"title":"Generate MD5 checksum for file deduplication","prompt":"I need the MD5 hash of this text blob to use as a deduplication key — please hash: 'Invoice #10482: Acme Corp, $4,200.00, due 2024-08-15'"},{"title":"Cross-algorithm hash comparison for audit","prompt":"Give me the SHA-1, SHA-256, SHA-512, and MD5 hashes of the string 'audit-event:user_login:uid=9821:ts=1720000000' so I can log all four digests for our security audit trail"}],"resultDescription":"A JSON object containing the selected algorithm name, the computed digest string (in hex or base64 encoding), the encoding type used, the number of input bytes processed, and an optional timestamp of when the computation was performed. An optional note field may provide caveats about the result.","failureModes":["Missing required 'text' query parameter — returns validation error","Input text exceeds 20,000 character limit — returns rejection or truncation error","Invalid encoding format requested — returns error or defaults","Payment not completed (x402 protocol) — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a quick, paid-per-call hash computation without running local crypto libraries, when you need multiple hash algorithms (SHA-256, SHA-1, SHA-512, MD5) from a single call, or when operating in an agent environment where you want a simple GET request with a text parameter rather than managing crypto dependencies. Ideal for lightweight integrity checks, deduplication keys, or audit logging in automated pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:42:49.119Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-text-hash-0dae3427"}