using System.Security.Cryptography;
public static void Main()
string secret = "Cityconnex";
string message = "XYZ0010|abcd1234|0|Test Reference|1.00";
string timeStamp = DateTime.UtcNow.ToString("yyyyMMddHHmmss");
message = message + "|" + timeStamp;
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] keyBytes = encoding.GetBytes(secret);
byte[] messageBytes = encoding.GetBytes(message);
System.Security.Cryptography.HMACSHA256 cryptographer = new System.Security.Cryptography.HMACSHA256(keyBytes);
byte[] bytes = cryptographer.ComputeHash(messageBytes);
string fingerPrint = BitConverter.ToString(bytes).Replace("-", "").ToLower();
Console.WriteLine(fingerPrint);