A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
9
Task/MD5-Implementation/C-sharp/md5-implementation-2.cs
Normal file
9
Task/MD5-Implementation/C-sharp/md5-implementation-2.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
System.Security.Cryptography.MD5CryptoServiceProvider x = new System.Security.Cryptography.MD5CryptoServiceProvider();
|
||||
byte[] bs = System.Text.Encoding.UTF8.GetBytes(password);
|
||||
bs = x.ComputeHash(bs);
|
||||
System.Text.StringBuilder s = new System.Text.StringBuilder();
|
||||
foreach (byte b in bs)
|
||||
{
|
||||
s.Append(b.ToString("x2").ToLower());
|
||||
}
|
||||
password = s.ToString();
|
||||
Loading…
Add table
Add a link
Reference in a new issue