I follow a few “link blogs” and as a result I see quite a few nifty little code snippets. One I came across today that was linked from Jason Haley’s Interesting Finds was this post from Code Project talking about MD5 Encryption in C#. The author of that post, Junian Triajianto crafted a handy C# class to be used for encrypting a string using MD5.
I played around with the class a little and created a simple WPF app that will generate the MD5 hash of an entered string.
Here is the Encryptor class that does the work:
And here is the XAML for the Main Window:
And finally the code to control the main window
The full sources are available here on Github.