Generate an HMAC-SHA256 signature
Pick your tool and run it locally. All three produce the same hex-encoded output for the same key and message.Sign a Bitnob API v2 request
Bitnob’s canonical message isCLIENT_ID:TIMESTAMP:NONCE:PAYLOAD, signed with your client secret:
Verify a webhook signature
Bitnob signs webhook deliveries with thex-bitnob-signature header. Recompute the HMAC over the raw request body and compare in constant time:
Security practices
- Keep secret keys confidential and server-side.
- Use strong, random secret keys.
- Prefer HMAC-SHA256 or stronger over HMAC-SHA1.
- Compare signatures with a constant-time function, never
==.