Posted on Wednesday January 14, 2009

C# MD5 and SHA encryption wrapper class

This is a simple utility class for MD5 (128bit) or SHA-2 (256bit,384bit and 512bit) hash encryption.

It outputs the string using 2 byte hex values, e.g. AB12FE. It doesn’t include SHA-1 but that’s trivial to add.