{"uid":"cap_rSSBkZ0F202rm7AP8NqAt","slug":"hash-hmac-c2d39b3c","name":"Hash + HMAC","description":"Compute cryptographic digests and HMACs deterministically: MD5, SHA-1, SHA-256, SHA-384, SHA-512, output as hex, base64, or base64url. Add a \"key\" for HMAC. Built for checksums, content addressing, and signature verification. Inputs are hashed and discarded. POST a JSON body like: {\"text\":\"hello world\",\"algorithm\":\"sha256\",\"encoding\":\"hex\"}","url":"https://payanagent.com/x402/kh737f5q658r7gq9t3x0fyk1nh8ac3hv","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","description":"If present, compute HMAC-<algorithm> with this key instead of a plain hash."},"text":{"type":"string","description":"The data to hash."},"encoding":{"enum":["hex","base64","base64url"],"type":"string","default":"hex"},"algorithm":{"enum":["md5","sha1","sha256","sha384","sha512"],"type":"string","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_Ikct44Fg7lM90MpXBoUFq","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 (MD5, SHA-1, SHA-256, SHA-384, SHA-512) or HMACs with an optional key, returning output in hex, base64, or base64url encoding.","exampleAgentPrompt":"Compute the SHA-256 hash of the string 'hello world' and give me the result in hex encoding.","exampleUseCases":[{"title":"Webhook signature verification","prompt":"I need to verify a webhook payload — compute an HMAC-SHA256 of the request body 'payload=abc123' using my secret key 'mysecretkey' and return it as hex so I can compare it to the signature header."},{"title":"Content-addressable cache key","prompt":"Generate a SHA-256 hash of this string 'user_id:42:profile:v3' encoded as base64url so I can use it as a cache key."},{"title":"Legacy MD5 checksum for compatibility","prompt":"I need an MD5 digest of the text 'document content here' in base64 encoding for a legacy system that requires it."}],"resultDescription":"Returns the computed hash or HMAC as a string in the requested encoding (hex, base64, or base64url). The input text is not stored or logged. The response is deterministic — identical inputs always yield identical outputs.","failureModes":["Unsupported algorithm value returns a validation error","Unsupported encoding value returns a validation error","Missing 'text' field may return an error or empty digest","Very large text inputs may time out or be rejected","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a simple, deterministic, server-side cryptographic hash or HMAC without setting up local crypto libraries — especially in agent pipelines that already use x402 micropayments and need consistent output encoding options (hex, base64, base64url). Useful when the agent runtime doesn't have native crypto access or when you want a neutral third-party to perform the hash.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:45:52.366Z","isFirstParty":false}