摘要:
public static byte[] EncryptPassword(string password) { byte[] bytes = new UnicodeEncoding().GetBytes(password); SHA1 sha = new SHA1CryptoServiceProvider(); return sha.ComputeHash(bytes); } protected void btnLogin_Click(object sender, EventArgs e) { byte[] encPassword = EncryptPassword("111&quo 阅读全文