We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You can include this:
private string ComputeSignature(string stringToSign) { var secret = "Webhook Signing Key"; using (var hmac = new HMACSHA256(Encoding.ASCII.GetBytes(secret))) { var signature = hmac.ComputeHash(Encoding.ASCII.GetBytes(stringToSign)); return BitConverter.ToString(signature).Replace("-", ""); } } var digest = ComputeSignature(emailEvent.Signature.Timestamp + emailEvent.Signature.Token); if (digest.Equals(emailEvent.Signature.Signature, StringComparison.OrdinalIgnoreCase)) ... //signature valid
The text was updated successfully, but these errors were encountered:
No branches or pull requests
You can include this:
The text was updated successfully, but these errors were encountered: