{"uid":"cap_RW3dJZgrx-V4NGQToXq71","slug":"hash-digest-api-md5-sha-hmac-42e80402","name":"Hash Digest API (MD5/SHA/HMAC)","description":"Compute md5/sha1/sha256/sha512 (or HMAC with a key) of a string; hex + base64 output.","url":"https://api.24klabs.ai/api/hash-digest","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"algo":{"type":"string"},"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"hex":"b94d27b9...","algo":"sha256"}},"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_icBdWrgAgEeZKs48guwoh","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 MD5, SHA-1, SHA-256, or SHA-512 hash (plain or HMAC with a key) of a string, returning both hex and base64 encodings.","exampleAgentPrompt":"Can you compute the SHA-256 HMAC of the string 'order:12345:confirmed' using the secret key 'mysecretkey', and give me both the hex and base64 versions?","exampleUseCases":[{"title":"API request signature generation","prompt":"I need to sign my API request body — compute the HMAC-SHA256 of 'user_id=42&amount=100' using the secret key 'abc123secret' and give me both hex and base64 outputs."},{"title":"Data integrity checksum","prompt":"Generate a SHA-512 hash of the string 'The quick brown fox jumps over the lazy dog' so I can use it as a checksum to verify data integrity later."},{"title":"Legacy MD5 fingerprinting","prompt":"Compute the MD5 digest of 'hello@example.com' in both hex and base64 — I need it for a Gravatar-style profile image lookup."}],"resultDescription":"Returns the computed hash digest in both hexadecimal and base64 encodings, along with the algorithm name used (md5, sha1, sha256, or sha512). For HMAC requests, the result reflects keyed hashing with the provided secret.","failureModes":["Unsupported algorithm name returns a validation error","Missing input string returns a 400 bad request","Invalid or missing HMAC key when HMAC mode is requested","Very large input strings may be truncated or rejected","Payment failure via x402 protocol blocks the request"],"whenToPreferThis":"Use this endpoint when an AI agent needs a quick, reliable hash or HMAC computation without setting up a local crypto library — especially useful in serverless or sandboxed agent environments where native crypto modules are unavailable. Ideal for generating API signatures, checksums, or fingerprints on the fly. Prefer this over general-purpose code execution endpoints when the sole requirement is hashing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:10.345Z","isFirstParty":false}