public static void Main()
System.Security.Cryptography.SHA1 sha1 = new System.Security.Cryptography.SHA1CryptoServiceProvider();
byte[] txtBytes = System.Text.Encoding.ASCII.GetBytes("public ip" + "secret" ?? string.Empty);
byte[] cryString = sha1.ComputeHash(txtBytes);
Console.WriteLine(Convert.ToBase64String(cryString));