Syntropy.Webhooks.Signature
(syntropy v0.3.0)
Copy Markdown
HMAC-SHA256 signing for outbound webhook deliveries.
Every delivery body is signed with the per-endpoint secret. Receivers verify
by recomputing sha256=hex(hmac_sha256(secret, raw_body)) and comparing it
to the x-syntropy-signature header with a constant-time comparison.
Summary
Functions
Sign a raw request body with an endpoint secret.
Verify a signature header against a raw body and secret in constant time.
Functions
Sign a raw request body with an endpoint secret.
Returns the full header value, e.g. "sha256=ab12...".
Verify a signature header against a raw body and secret in constant time.