Simple MD5 hashes in VB.NET

MD5 (Message Digest) hashes are a simple, efficient way to encode/encrypt information to be passed around. Rather than containing the data itself, an MD5 hash is merely a fingerprint of the information. The hash cannot be decrypted, but is instead compared to other hashed values for verification. This can be a handy tool when authenticating a user’s entered password as one simple example.

Here is a very efficient, simple function that can be used to generate an MD5 hash for a given string… Read More →

Using the ConnectionStrings element in ASP.NET web.config

If you are building a series of web applications that may rely on duplicate data (such as connection strings for pages that query databases), or you want to separate certain constants from your other code, you need a centralized method for storing and referencing that data. In this case, the ConnectionStrings element in the web.config file of either your application’s root directory, parent directory, or the web server root directory–depending on your application’s inheritance–can prove incredibly useful. Read More →

Wipe all elements in a form with Javascript

Javascript has a nifty method associated with the form DOM object called reset(). Using this method will revert all values of the form’s associated input controls to the values they contained when the page was last sent to the user’s browser. That’s great… but if you want to revert the values to nothing, then some scripting is required: Read More →

Central repository

I’m starting this blog for two reasons.

First of all, I wanted somewhere that I could (try to) keep track of all of my programming projects/interests; sort of an “online notepad,” if you will.

Second, I figure maybe some of the problems I’m working on–or hopefully, my solution(s) to them–might help someone else in their endeavors. Read More →