public static void Main()
var clientSecret = "oShzaTm89ktDKW4vrCHy2BPW04LyUcNrKWJr5VIq";
Console.WriteLine("Test Authentication Key:" +GenerateHMAC("6619237621900826|20180109161437|sixTOKENfour", 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);