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(
"-"
,
""
);
时间: 2024-10-21 19:31:54