I am working on a project where I need to have a set of password restrictions, which includes a file of forbidden passwords (all common passwords such as "abc", "abcdef", "12345", "password", etc.). The password file will consist of 10,000-15,000 words.
Now I want to make sure that when the user sets / changes the password, he does not exist in the list. I was thinking of using a dictionary (or map) in Java (with buckets like "A", "B", "C" .... "Z", "NUMBERS", "SPECIAL_CHARS"), so I just check the first character, and then search the appropriate bucket. But I'm not sure what performance I can get from this.
Any suggestions for working with the "Prohibited passwords" list. Any other pointers to watch out for?
navinpai
source share