For Slack, sign the string "v0:{timestamp}:{rawBody}" and compare to the v0= value in X-Slack-Signature. For GitHub, compare X-Hub-Signature-256 (sha256=hex).
Common webhook signature formats
- GitHub / Meta:
X-Hub-Signature-256: sha256=<hex> - Slack:
X-Slack-Signature: v0=<hex>overv0:{ts}:{body} - Stripe-style: timestamp and signatures in
Stripe-Signature
Related: Webhook signature generator, APIs and webhooks guide.