{"uid":"cap_gi_2gF-6mTXIAOWCfruxi","slug":"moneytools-hmac-verify-1eccd0e6","name":"MoneyTools HMAC Verify","description":"Catalog of MoneyTools: 116 cheap, read-only tools for AI agents. Free daily tier, then x402 USDC micropayments or prepaid credits. Token safety, approvals, tx decoding, EIP-712 risk, gas, ENS, x402 validation, DNS, RDAP, JSON Schema, time, FX.","url":"https://tools.moneytools.dev/v1/hmac-verify?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"algo":{"type":"string","examples":["sha256"],"description":"sha256 | sha1 | sha384 | sha512"},"secret":{"type":"string","examples":["whsec_test"],"description":"HMAC secret (not stored)"},"message":{"type":"string","examples":["{\"id\":1}"],"description":"raw message / body"},"signature":{"type":"string","examples":["00"],"description":"expected signature (hex or base64)"},"signatureEncoding":{"type":"string","description":"hex | base64 (auto)"}}},"responseSchema":{"type":"json","example":{"algo":"SHA-256","note":"Secret is taken from this request body only and is never stored or logged. Use for webhook authenticity checks.","valid":false,"signatureHex":"28b662b0d2478f16dfe24997114352f1e753db9b7b114b477859947e73144763","expectedLength":32,"providedLength":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_C5POBtk2gF7U9IGnqP_O2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies an HMAC signature against a message and secret using SHA-256/SHA-1/SHA-384/SHA-512, returning whether the signature is valid","exampleAgentPrompt":"Can you verify this webhook HMAC signature for me? The secret is 'whsec_mykey', the raw message body is '{\"id\":42,\"event\":\"payment.completed\"}', the expected signature is 'a3f2c...' in hex, and we're using SHA-256.","exampleUseCases":[{"title":"Webhook signature validation","prompt":"I just received a webhook POST from our payment provider — the body is '{\"order_id\":99,\"amount\":500}', the signature header is '3ad1e9f...' in hex, the secret is 'whsec_prod_abc123', and they use SHA-256. Can you check if the signature is legit before I process it?"},{"title":"GitHub webhook authenticity check","prompt":"GitHub sent us a webhook with the payload '{\"ref\":\"refs/heads/main\"}' and an X-Hub-Signature-256 header of 'sha256=a4c8...'. Our webhook secret is 'ghsecret_xyz'. Please verify it using SHA-256 and base64 — I need to confirm it's genuinely from GitHub before triggering the CI pipeline."},{"title":"Tamper detection on internal message","prompt":"We pass signed messages between our services using HMAC-SHA512. Can you check if the message '{\"userId\":7,\"action\":\"withdraw\"}' with signature 'ZG9u...' (base64) is valid against our shared secret 'internal_secret_key_prod'?"}],"resultDescription":"A JSON response indicating whether the provided signature is valid for the given message and secret, using the specified HMAC algorithm and encoding. Likely includes a boolean valid/invalid result and possibly the computed HMAC for comparison.","failureModes":["Invalid or unsupported algorithm value (not sha256/sha1/sha384/sha512)","Malformed signature encoding (neither valid hex nor base64)","Missing required fields (secret, message, or signature) causing a 400 error","Signature mismatch returns a valid response but with invalid=true rather than an error","Network or service unavailability returning a 5xx error","Payment failure (402) if no credits or x402 payment provided"],"whenToPreferThis":"Use this endpoint when you need a lightweight, stateless HMAC signature check without setting up your own crypto library — ideal for verifying webhook payloads from services like Stripe, GitHub, or Shopify, or for authenticating internal signed messages. Prefer it when you want a cheap (sub-cent), read-only, audit-free verification call that supports multiple hash algorithms and both hex and base64 encodings.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T18:40:30.617Z","isFirstParty":false,"canonicalSlug":"moneytools-hmac-verify-1eccd0e6"}