laptop-codeSecurity & HMAC

Learn about HMAC signature verification and security best practices for webhook integration.

1

HMAC Signature Verification

HMAC (Hash-based Message Authentication Code) ensures that webhooks are authentic and haven't been tampered with. Every webhook request includes a signature that we verify using your secret key.

How it works:
1. Your store creates a signature using HMAC-SHA256 and your secret key
2. The signature is sent in the webhook header (e.g., X-Signature)
3. Our system recalculates the signature using the same secret
4. If signatures match, the webhook is processed
5. If they don't match, the request is rejected
2

Security Best Practices

3

Supported Algorithms

chevron-rightSHA-1hashtag

Fast, legacy support

chevron-rightSHA-256hashtag

Recommended, secure

chevron-rightSHA-512hashtag

Maximum security

circle-exclamation

Last updated