MD5 m5 = new MD5CryptoServiceProvider();
byte[] bs = m5.ComputeHash(System.Text.Encoding.Default.GetBytes("hello"));
// string hex = BitConverter.ToString(bs).Replace("-", string.Empty);
string aa = Convert.ToBase64String(bs);
Console.WriteLine(aa);
传给ldap的时候,需要加:类似的前缀
{MD5}Xr4ilOzQ4PCOq3aQ0qbuaQ==
网友评论