using System.Security.Cryptography;
public static void Main()
Console.WriteLine(HashString("1239016412.144100", "22930"));
public static string HashString(string StringToHash, string HachKey)
System.Text.UTF8Encoding myEncoder = new System.Text.UTF8Encoding();
byte[] Key = myEncoder.GetBytes(HachKey);
byte[] Text = myEncoder.GetBytes(StringToHash);
HMACSHA1 myHMACSHA1 = new HMACSHA1(Key);
byte[] HashCode = myHMACSHA1.ComputeHash(Text);
string hash = BitConverter.ToString(HashCode).Replace("-", "");