{"uid":"cap_0jeHLHzsKHXW12Jm7hsgk","slug":"agent402-tools-cryptographic-hash-caa4efbc","name":"agent402.tools Cryptographic Hash","description":"Cryptographic hash of a text string - sha256 (default), sha512, sha1 or md5 - returned as hex and base64. Use it for content fingerprints, integrity checks and deterministic ids; pure computation, instant.","url":"https://agent402.tools/api/hash","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"algo":{"type":"string","description":"sha256 | sha512 | sha1 | md5"},"text":{"type":"string","description":"Text to hash (max 100KB)"}}},"responseSchema":{"type":"json","example":{"hex":"b94d27…","algo":"sha256","base64":"uU0n…"}},"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_fbSJMeKYGALMcaOEreqNQ","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 a cryptographic hash (SHA-256, SHA-512, SHA-1, or MD5) of a text string, returning both hex and base64 digests.","exampleAgentPrompt":"Can you hash the text 'Hello, World!' using SHA-512 and give me both the hex and base64 digests?","exampleUseCases":null,"resultDescription":"Returns the cryptographic hash of the input text in both hexadecimal and base64 encoding, using the specified algorithm (sha256, sha512, sha1, or md5).","failureModes":["Text input exceeds 100KB limit — request rejected","Invalid algorithm name supplied — returns error","Missing 'text' field in request body — validation error","Payment failure via x402 protocol — 402 response with payment details"],"whenToPreferThis":"Use this endpoint when you need a quick, paid-per-call cryptographic hash of a text string without setting up local crypto libraries. Ideal for agents needing one-off integrity checks, fingerprinting, or digest generation supporting multiple algorithms via a single API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:06.641Z","isFirstParty":false}