using System;
using System.Text;
public class Program
{
public static void Main()
Console.WriteLine(GetSHA1Hash("10000006", "2040000436", "3000001955", "10.98.99.1", "c192cfb2edd92450c7e7c51dfed5c794b4c9cdae"));
}
public static string GetSHA1Hash(params string[] arrParams)
string Input = "";
int i;
for (i = 0; i <= arrParams.Length - 1; i++)
Input = Input + " " + arrParams[i];
Console.WriteLine("Input:" + Input);
System.Security.Cryptography.SHA1CryptoServiceProvider x = new System.Security.Cryptography.SHA1CryptoServiceProvider();
byte[] bs = Encoding.UTF8.GetBytes(Input);
bs = x.ComputeHash(bs);
StringBuilder s = new StringBuilder();
foreach (byte b in bs)
s.Append(b.ToString("x2").ToLower());
string sha1String = s.ToString();
return sha1String;