views:

36

answers:

2

What is the most comprehensive MD5 tutorial out there? I have been trying to implement a decent MD5 checksum program but I have not come across a tutorial that makes it really clear.

Any pointers would be appreciated, Thanks.


To clarify I would like to know how to implement it.

+1  A: 

There's some explanation and pseudo-code of implementation on Wikipedia

RC
A: 

Nothing easier than that. The following method will convert a given string and return the MD5 Hash of it.

public static string MD5Hash(string text)
{
System.Security.Cryptography.MD5 md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
return System.Text.RegularExpressions.Regex.Replace(BitConverter.ToString(md5.ComputeHash(ASCIIEncoding.Default.GetBytes(text))), “-”, “”);
}
BitKFu
I think the OP is trying to implement MD5 algorithm himself.
brozo
why should he do that?
BitKFu
Why, because it's there of course ;)
Michael Wilson