c#密码加密怎么解密
byte[] buffer = System.Text.Encoding.UTF8.GetBytes(password);
SHA1CryptoServiceProvider sha = new SHA1CryptoServiceProvider();
byte[] hash = sha.ComputeHash(buffer);
StringBuilder passwordbullder = new StringBuilder(32);
foreach (byte hashByte in hash)
{
passwordbullder.Append(hashByte.ToString("x2"));
}
return passwordbullder.ToString();