Where do I find a dictionary for password validation?

前端 未结 9 1288
春和景丽
春和景丽 2020-12-30 14:29

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

9条回答
  •  旧时难觅i
    2020-12-30 15:04

    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.

提交回复
热议问题