public static void Main()
var encrypted=HashPassword(pwd);
Console.WriteLine(encrypted);
public static string HashPassword(string password)
var sha1 = new System.Security.Cryptography.SHA1Managed();
var src = System.Text.Encoding.ASCII.GetBytes(password);
var dest = sha1.ComputeHash(src);
return Convert.ToBase64String(dest);