{"uid":"cap_qFsFU1XyVMYRSZkfVaBYz","slug":"fastx402-lab-hash-digest-9b1c37e2","name":"FastX402 Lab – Hash Digest","description":"146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/hash-digest?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 (UTF-8)"},"encoding":{"enum":["hex","base64"],"type":"string","description":"hex or base64 (default hex)"},"algorithm":{"enum":["sha1","sha256","sha384","sha512"],"type":"string","description":"sha1, sha256, sha384 or sha512 (default sha256)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"digest":{"type":"string"},"encoding":{"type":"string"},"algorithm":{"type":"string"},"input_bytes":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"digest":"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9","encoding":"hex","algorithm":"sha256","input_bytes":11}},"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_dAYUtIwVM6Ge62pUopE4Y","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 SHA-1, SHA-256, SHA-384, or SHA-512 cryptographic digest of UTF-8 text, returning the result as hex or Base64","exampleAgentPrompt":"Hash the text 'Hello, world!' using SHA-256 and give me the result as a hex digest.","exampleUseCases":[{"title":"Subresource Integrity value generation","prompt":"I'm loading a third-party JavaScript file in my HTML — can you generate a SHA-384 base64 digest of this script content so I can add it as a Subresource Integrity attribute: 'console.log(\"hello\");'?"},{"title":"Cache key fingerprinting","prompt":"I need a short, consistent cache key for this query string: 'user_id=42&filter=active&page=3' — can you SHA-256 hash it and return the hex digest?"},{"title":"Verify a published file hash","prompt":"I downloaded something and the publisher says the SHA-512 hex hash of the content should be 'abc123...'. Can you hash this text for me using SHA-512 in hex so I can check it matches?"}],"resultDescription":"A JSON object containing the computed digest string (in hex or base64), the algorithm used, the encoding format, and the number of UTF-8 bytes in the input text.","failureModes":["Missing required 'text' query parameter returns an error","Unsupported algorithm or encoding enum value returns a validation error","Extremely large text inputs may exceed request size limits","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need a fast, serverless cryptographic hash of a UTF-8 string without setting up local crypto libraries — ideal for AI agents needing checksums, SRI values, cache keys, or hash verification in a pay-per-call context via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:48.370Z","isFirstParty":false,"canonicalSlug":"fastx402-lab-hash-digest-9b1c37e2"}