{"uid":"cap_2lXo2Hh_JacBWC-5trVWy","slug":"json-and-data-tools-hash-text-049c04b0","name":"JSON and Data Tools – Hash Text","description":"MD5, SHA-1, SHA-256 and SHA-512 digests of UTF-8 text, in hex and base64, for checksums and integrity checks.","url":"https://json-data-tools.x402tookit.com/hash-text?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 3000 characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"md5":{"type":["null","string"]},"asOf":{"type":["null","string"]},"sha1":{"type":["null","string"]},"bytes":{"type":["null","number"]},"sha256":{"type":["null","string"]},"sha512":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"sha256Base64":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Hov9cKzpenGdKPrZR_u6M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes MD5, SHA-1, SHA-256, and SHA-512 cryptographic digests of UTF-8 text, returning both hex and base64-encoded forms for checksum and integrity verification.","exampleAgentPrompt":"Can you compute the MD5, SHA-256, and SHA-512 hashes of the text 'Hello, world!' and give me both the hex and base64 versions?","exampleUseCases":[{"title":"Verify downloaded config integrity","prompt":"Hash this config file content for me so I can check it against the expected SHA-256 checksum: 'database_host=localhost\\ndatabase_port=5432\\ndatabase_name=mydb'"},{"title":"Fingerprint a secret token","prompt":"Give me the SHA-512 digest of the string 'supersecrettoken2024' in both hex and base64 so I can store a fingerprint instead of the raw value."},{"title":"Cross-check document checksum","prompt":"I received a document whose text starts with 'Agreement dated January 1, 2025...' — can you compute its MD5 and SHA-1 so I can compare them to the checksums the sender provided?"}],"resultDescription":"Returns an object containing MD5, SHA-1, SHA-256, and SHA-512 digests in hexadecimal, plus a SHA-256 value in base64, along with the byte length of the input text, a source identifier, a summary, and optional degraded/disclaimer flags.","failureModes":["Text exceeds 3000 character limit — request rejected or truncated","Non-UTF-8 or binary input may cause unexpected digest values","Missing required 'text' query parameter returns an error","Service unavailability or payment failure (x402) blocks the request"],"whenToPreferThis":"Use this endpoint when you need multiple hash algorithms (MD5, SHA-1, SHA-256, SHA-512) computed in a single call for the same text, especially when both hex and base64 encodings are needed. Prefer it over single-algorithm hashers or local computation when operating in an agent pipeline that already uses x402 micropayment infrastructure and needs a quick, reliable remote digest service for short-to-medium text inputs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:34:48.965Z","isFirstParty":false,"canonicalSlug":"json-and-data-tools-hash-text-049c04b0"}