MD5 encryption in VB.NET

The text “12345” converted to “827ccb0eea8a706c4c34a16891f84e7b”. That’s nothing but simple encryption using MD5 cryptography. You can use MD5 encryption in your projects for encrypting sensitive data like passwords, credit card numbers, etc. But beware, once encrypted these cannot be decrypted again. For example, once you store the hashed password in a database, you can afterwards check during user login whether the hash of the entered password and the stored hashes are the same.

I have created a simple utility class which can be used to encrypt or compare hashes. It is a shared class and thus can be used directly without creating any instance. To download it, click here. To use it simply write Hasher.HashIt(inputStr). Replace the inputStr with the string you want to hash and it’s done.

You can find the complete history and algorithm of MD5 here.


One thought on “MD5 encryption in VB.NET

Your Thoughts -

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s