public static void Main()
var time = DateTime.UtcNow.ToString("yyyyMMddHHmmss");
var tokenexid = "TokenExID";
var apiKey = "MobileAPI_API_Key";
var tokenscheme = "sixTOKENfour";
Console.WriteLine("AuthenticationKey: " +GenerateHMAC(tokenexid+"|"+time+"|"+tokenscheme, apiKey));
Console.WriteLine("timestamp: "+time);
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);