你的位置:首页 > ASP.net教程

[ASP.net教程]C# Winform MD5加密学习积累


string password = txtPassword.Text.Trim();byte[] result = Encoding.Default.GetBytes(password);MD5 md5 = new MD5CryptoServiceProvider();byte[] output = md5.ComputeHash(result);password = BitConverter.ToString(output).Replace("-", "");