Sign & verify
e.g. GitHub webhook Secret, Stripe whsec_…, Slack Signing Secret
Generated signature header
X-Hub-Signature-256
Enter a secret and body, then press Generate signature.
Verify a received signature
Original vs re-encoded body
Any proxy or framework that re-serializes JSON breaks the signature. Compare the body you received with the one your server rebuilt.
Payload & headers
Request headers
Discord signs with Ed25519, not HMAC. This lab shows the payload and header shape only.
Enter a secret to fill in the real signature for this payload.
Request body (JSON)
JSON tree & paths
Replay window simulation
A valid signature can still be replayed. In many integrations the timestamp window is the only thing that stops a captured request from being accepted twice.
Timing-safe comparison
A byte-by-byte string comparison leaks how many leading bytes matched. The numbers below come from an actual comparison of the two values.
Code
The generated code reads the raw request bytes. If your framework parses and re-serializes the body, the signature will not match.
The default is a placeholder. Never share code that contains a real secret.