Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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); //this function is not in the above classdefinition
|
||||
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