摘要: 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 阅读全文
posted @ 2011-09-06 16:46 辰冉 阅读(384) 评论(0) 推荐(0) 编辑