Discussions

Ask a Question
Back to All

Webhook Signature Encryption

Please share code snippet if anyone has implemented below method in C#.

function verifyWebhookSignature(signature, url, payload, secret) {
return signature == crypto.createHmac('sha256', secret).update(Buffer.from(url + payload, 'utf-8')).digest('base64');
}