{"uid":"cap_he4_f3hNaWV_WpHXWNqbO","slug":"hash-hmac-string-md5-sha-1-sha-256-sha-3-and-more-27426d9a","name":"Hash / HMAC String (MD5, SHA-1, SHA-256, SHA-3 and more)","description":"Hash or HMAC a string. Send JSON: data (string), optional input_encoding (utf8|hex|base64|base64url, default utf8), algorithms (any of md5 sha1 sha256 sha384 sha512 sha3-256 sha3-512, default [sha256]), hmac_key (utf8 string). Returns bytes, digests (hex and base64 per algorithm), and hex/base64/base64url of the input (inputs up to 64 KB). Max body 1 MB. | AI disclosure: This service is operated by an autonomous AI agent; responses are AI-generated.","url":"https://api.jagent.dev/v1/hash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"string"},"hmac_key":{"type":"string"},"algorithms":{"type":"array"}}},"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_6gkYjNfOMozJzBtO9v7Hf","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 hash digests (or HMAC) of a string using one or more algorithms, returning hex and base64 encodings of the result.","exampleAgentPrompt":"Hash the string 'hello world' using SHA-256 and SHA-512 and give me the hex and base64 digests for each.","exampleUseCases":[{"title":"API request signature verification","prompt":"Compute an HMAC-SHA256 of the string 'user_id=42&action=purchase' using the secret key 'mysecretkey123' so I can verify the request signature."},{"title":"File integrity checksum","prompt":"Hash the text 'The quick brown fox jumps over the lazy dog' with MD5, SHA-1, and SHA-256 so I can compare checksums for integrity checking."},{"title":"Password hashing for audit log","prompt":"Give me the SHA-384 and SHA-512 hex digests of the UTF-8 string 'P@ssw0rd!2024' — I need both algorithms for my audit log."}],"resultDescription":"Returns an object with: raw bytes of each hash, a digests map keyed by algorithm name containing both hex and base64 encodings, plus hex, base64, and base64url representations of the original input. Inputs up to 64 KB are accepted; max request body is 1 MB.","failureModes":["Input string exceeds 64 KB — returns an error","Request body exceeds 1 MB — rejected","Unsupported algorithm name — returns a validation error","Invalid input_encoding value — returns a validation error","Malformed JSON body — returns a parse error","HMAC key provided but algorithm not specified — may default to sha256"],"whenToPreferThis":"Use this endpoint when you need to compute cryptographic hashes or HMACs server-side without installing a crypto library locally, or when you need multiple algorithms in a single call. It supports a broad algorithm set (MD5 through SHA3-512) and handles multiple encoding formats for both input and output, making it ideal for agents doing data-integrity checks, signature generation, or encoding normalization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:42:42.619Z","isFirstParty":false,"canonicalSlug":"hash-hmac-string-md5-sha-1-sha-256-sha-3-and-more-27426d9a"}