public static void Main()
var clientSecret = "bsei6Tt3ev73LFkkkO5DfhFl1UjKFptOxweg83bg";
Console.WriteLine("Test Authentication Key:" +GenerateHMAC("8072181828122792|https://qa.aiginsurance.com|20221011193805|26", clientSecret));
private static string GenerateHMAC(string payload, string HMACKey)
var hmac = new System.Security.Cryptography.HMACSHA256{Key = System.Text.Encoding.UTF8.GetBytes(HMACKey)};
var hash = hmac.ComputeHash(System.Text.Encoding.UTF8.GetBytes(payload));
return Convert.ToBase64String(hash);