using System.Security.Cryptography;
public static void Main()
Console.WriteLine("Hello World");
var key = "webhook_secret_4ef442fbdb2ed66452097daf9e5ce8c3";
using (var hmacsha256 = new HMACSHA256(Encoding.UTF8.GetBytes(key)))
var hash = hmacsha256.ComputeHash(Encoding.UTF8.GetBytes("2022-12-07T08:56:29.571Z" + "5b0006ce6e7bc852b76da61debcfdd19"));
Console.WriteLine(ToHex(hash, false));
private static string ToHex(byte[] bytes, bool upperCase)
StringBuilder result = new StringBuilder(bytes.Length * 2);
for (int i = 0; i < bytes.Length; i++)
result.Append(bytes[i].ToString(upperCase ? "X2" : "x2"));
return result.ToString();