Two simple VB.NET functions for generating and comparing 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 →
asp.net,asp.net 2.0,.net 3.5,appsettings,configuration.appsettingsStoring configuration values in the ConnectionStrings element of web.config for an ASP.NET web applicationIf 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 →
Thousands of websites have been hit lately by the rash of SQL injections being perpetrated en-masse. Most languages (current versions, at least) have a procedure for separating parameters from the query they augment in an effort to prevent SQL injection, and VB.NET is no different. Read More →
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 →