I have some server side code that needs to check a username/password pair. I'm looking for something to do this that is nice and simple as in having a text file with username/MD5 hash pairs. I'd love the code use to look like this:
if(!PasswordChecker.ValidLogin("passwords.dat", username, password)
throw new Exception("Invalid username or password");