I am working on a password validation algorithm that needs to check potential passwords against the dictionary. If the password or any part of it can be found in the dictio
I got the word list from here, and loaded it into my database. Removed all words less than 3 characters.
Wrote a C# function to parse each substring of a password (forward only for now) into an xml string.
Pass the xml string to a stored proc that creates a 1 column temp table with each substring making a row.
Join the temp table to my list of words, and if any rows are returned I know the password contains a dictionary word, and I know what substrings matched.
This works well, but I think we'll end up modifying the word list a bit as it may be too restrictive.
Thanks for the help on the word list
I originally tried to go the spell checker route, but I didn't find a way to do a spell check without either a 3rd party component (redistribution was too pricey and we are selling a product), or requiring MS Word on the server.