using System.Security.Cryptography;
public static void Main()
string nonce = DateTime.Now.ToFileTime().ToString();
string privateKey = "au6RRBKcqrmSnh9RN8KNEBaKBEEEDcwwKbChTWb7FPxsZMtsUzuvQWGXCj8V87QnpBWYrHtVfKK6csfAKJaxW7w58NdZ2jXMBnNrsRfdJnWhXzLXU52Lddc8Sfss35kn";
string publicKey = "4LDVS4Kv5S5sxT83FNHp5LzDcKb9wnkE";
string url = "https://preprod.api.catalizr.io/authorize/";
HMACSHA512 hmac = new HMACSHA512(Encoding.ASCII.GetBytes(privateKey));
byte[] computedHash = hmac.ComputeHash(Encoding.UTF8.GetBytes(nonce + url + "{\"apiPublicKey\": \""+ publicKey +"\"}"));
Console.WriteLine("Nonce : " + nonce);
Console.WriteLine("Public key : " + publicKey);
Console.WriteLine("Signature : " + BitConverter.ToString(computedHash).Replace("-", string.Empty).ToLower());