2013-04-10 21:29:02 -07:00
|
|
|
System.Security.Cryptography.MD5CryptoServiceProvider x = new System.Security.Cryptography.MD5CryptoServiceProvider();
|
|
|
|
|
byte[] bs = System.Text.Encoding.UTF8.GetBytes(password);
|
2015-11-18 06:14:39 +00:00
|
|
|
bs = x.ComputeHash(bs); //this function is not in the above classdefinition
|
2013-04-10 21:29:02 -07:00
|
|
|
System.Text.StringBuilder s = new System.Text.StringBuilder();
|
|
|
|
|
foreach (byte b in bs)
|
|
|
|
|
{
|
|
|
|
|
s.Append(b.ToString("x2").ToLower());
|
|
|
|
|
}
|
|
|
|
|
password = s.ToString();
|