public static void Main()
Program p = new Program();
var utcdate =DateTime.UtcNow;
var Password = "Re0R%0Fd";
Console.WriteLine("Client_ID: "+ ClientID);
Console.WriteLine("x-token: " + p.GetXTokenHeader(utcdate,ClientID, Password));
Console.WriteLine("UTCTimestamp: "+ utcdate.ToString("yyyy-MM-ddTHH:mm:ss.fff"));
private string GetXTokenHeader(DateTime utcdate, string ClientID, string Password)
var date = utcdate.ToString("yyyy-MM-ddHHmmss");
var data = date+ ClientID + Password;
private string SHA512(string input)
var bytes = System.Text.Encoding.UTF8.GetBytes(input);
using (var hash = System.Security.Cryptography.SHA512.Create())
var hashedInputBytes = hash.ComputeHash(bytes);
var hashedInputStringBuilder = new System.Text.StringBuilder(128);
foreach (var b in hashedInputBytes)
hashedInputStringBuilder.Append(b.ToString("x2"));
return hashedInputStringBuilder.ToString();