opyeb hmaclab

hmaclab · Guides

Webhook signature verification guides

Five guides: HMAC basics, GitHub, Slack and Stripe headers, and constant-time comparison

Platform header formats, constant-time comparison and preserving the raw body: the points that break real integrations.

Basics

BasicsWebhook signature verification basics: HMAC and the raw bodyFrom the HMAC definition to the signed bytes, verification order and common failures.GitHubVerifying GitHub webhooks with X-Hub-Signature-256GitHub's header format, prefix handling and legacy SHA-1 support.

Per-platform verification

SlackSlack signing secrets and v0 timestamp verificationSlack's v0 signed string, timestamp judgement and retry handling.StripeStripe webhook t=/v1= signatures and the replay toleranceStripe header structure, replay judgement and dual-secret rotation.

Safe comparison

Safe comparisonConstant-time comparison: keeping time from leakingHow timing attacks work and how to implement constant-time comparison in each language.

Ready to check your own webhook? Open the workbench.

Open the tool