# GitHub Webhook Signature Verifier > Check an X-Hub-Signature-256 header against the payload and the webhook secret. Computes the HMAC-SHA256 signature GitHub sends with every webhook delivery and compares it with the X-Hub-Signature-256 header you received, in constant time. Use it to debug a webhook receiver that rejects deliveries, or to create a valid signature for a test request. Same check as the Trackwell GitHub sync endpoint. Part of usefulweb.site (https://usefulweb.site/). Part of [Trackwell](https://trackwell.usefulweb.site/) (ownerApp: trackwell). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://trackwellgithubwebhookverify.usefulweb.site/ (interactive tool at https://trackwellgithubwebhookverify.usefulweb.site/tool) - JSON API: POST https://trackwellgithubwebhookverify.usefulweb.site/api/v1/calculate with a JSON object of inputs (schema: https://trackwellgithubwebhookverify.usefulweb.site/api/v1/tool) - OpenAPI: https://trackwellgithubwebhookverify.usefulweb.site/openapi.json - MCP (Streamable HTTP): https://trackwellgithubwebhookverify.usefulweb.site/mcp - tool `trackwell_github_webhook_verify` ## Inputs - secret (text): Webhook secret - The secret entered in the repository’s webhook settings on GitHub. - payload (textarea): Payload (raw request body) - The exact body GitHub sent. Copying from a log can change line endings or spaces — then the signature cannot match. Use the file field for exact bytes. - payloadFile (file): Payload file (optional, exact bytes) - Used instead of the pasted text when given. - signature (text): X-Hub-Signature-256 header (optional) - Leave empty to only compute the signature for this payload and secret. ## Method - GitHub signs the raw request body (exact bytes, UTF-8) with HMAC-SHA256 (RFC 2104) using the webhook secret as the key and sends “sha256=” plus 64 lower-case hex digits in the X-Hub-Signature-256 header. - The tool computes the same HMAC over the payload bytes (the uploaded file as is, or the pasted text encoded as UTF-8) and compares it with the header in constant time, so the comparison itself leaks no timing information. - Results: valid (identical), mismatch (wrong secret or changed body), malformed (not “sha256=” + 64 hex digits; the older SHA-1 header X-Hub-Signature is not accepted) or missing (no header given: only the expected signature is shown). - When the payload is JSON, the event hints (action, repository, issue number, sender) are read from it for orientation; they are not part of the check. - Trackwell’s GitHub sync uses this function for its webhook endpoint and additionally drops deliveries whose X-GitHub-Delivery id was already seen in the last 24 hours. ## Limits - The secret is used only to compute this result and is not stored. Do not paste secrets of production systems into tools you do not trust; rotate a secret after debugging if in doubt.