{"uid":"cap_yxDQNsIO-lBgVxm-KHvrb","slug":"402utils-hash-checksum-api-d0028c43","name":"402utils Hash / Checksum API","description":"Compute cryptographic hashes / checksums of a string or of raw bytes (base64). Returns lowercase hex for each requested algorithm: sha256 (default), sha512, sha1, md5. SHA via native Web Crypto; md5 and sha1 are offered for legacy interop only and flagged — not for security. POST so the input never lands in a URL/log. Verification/checksums only, not a hash cracker.","url":"https://402utils.com/v1/hash","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"UTF-8 text to hash."},"bytes":{"type":"string","description":"Raw bytes as base64 (standard or url-safe) — alternative to `text`."},"algorithms":{"type":"array","items":{"enum":["sha256","sha512","sha1","md5"],"type":"string"},"default":["sha256"],"description":"Which digests to compute (default [\"sha256\"])."}}},"responseSchema":null,"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_4vLYBmceXNJMe7ao3iX2h","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 cryptographic hashes (SHA-256, SHA-512, SHA-1, MD5) of a UTF-8 string or raw bytes, returning lowercase hex digests for each requested algorithm.","exampleAgentPrompt":"Can you hash the string 'Hello, World!' and give me both the SHA-256 and SHA-512 hex digests?","exampleUseCases":[{"title":"Verify downloaded file integrity","prompt":"I just downloaded a config file and the vendor says the SHA-256 should be a specific value. Can you hash the raw bytes of this file and check whether the digest matches what they provided?"},{"title":"Generate MD5 checksum for legacy system","prompt":"Our old storage system requires an MD5 checksum for every record we upload. Can you compute the MD5 of this string so I can include it in the metadata before we send it over?"},{"title":"Compute multiple hashes at once","prompt":"I need to cross-check a message against three different systems that each expect a different algorithm — can you hash this payload and give me the SHA-256, SHA-512, and MD5 all in one go?"}],"resultDescription":"A JSON object mapping each requested algorithm name to its lowercase hex digest string, e.g. {\"sha256\": \"dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986d\", \"sha512\": \"...\"}. SHA-1 and MD5 results are flagged as legacy/not for security use.","failureModes":["Missing both 'text' and 'bytes' fields — returns 400 error","Both 'text' and 'bytes' provided simultaneously — ambiguous input, likely 400","Invalid base64 encoding in 'bytes' field — returns 400 or decoding error","Unsupported algorithm value outside enum — returns 400 validation error","Empty string or zero-length input — may return valid hash of empty input or 400 depending on implementation","Payment failure (402) if USDC not provided via x402 protocol"],"whenToPreferThis":"Use this endpoint when you need a quick, serverless hash computation without running local crypto libraries — especially useful in agent pipelines needing integrity verification, when you want multiple algorithms in one call, or when you need SHA-256/SHA-512 via Web Crypto with a pay-per-call model rather than maintaining infrastructure. Prefer over alternatives when you need the input kept out of URLs and logs (POST body), and when you want MD5/SHA-1 flagged for legacy interop.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:46:46.198Z","isFirstParty":false}