tags:

views:

123

answers:

5

Hi all

I have to write a program that will test the strength our our teams password after they have chosen

i need to write a program that will email them and tell them to choose a better password

Is there any lists available, legal of course, that i can use to do this?

+3  A: 

There is a jQuery plugin that will show you password strength. The link also tells you the algorithm it uses (so you could implement it server-side if you want.)

DanSingerman
I don’t like tests of such kind: A word of thousand characters of `a` is considered as bad.
Gumbo
So modify the algorithm it uses so it takes password length into account. Simple. Personally though, I'd consider a 1000 character password bad too: You'd *have* to store any non-trivial password of that length somewhere outside your brains memory, hence negating the benefit of having it.
Matthew Scharley
@Matthew Scharley: I just wanted to show that most algorithms just look for some properties (character classes and so on). But the most important property, the length, is just considered as a minor factor.
Gumbo
+5  A: 

You ask for lists so I'm guessing you're fine with the programming but are seeking wordlists/dictionaries to use?

To begin, if you have access to a UNIX/Linux/MacOS box there is a list in /usr/dict/words or /usr/share/dict/words.

A list of common passwords is at http://www.openwall.com/passwords/wordlists/password.lst

Also, check here for a large collection of wordlists - http://www.net-comber.com/wordurls.html

However, a list alone isn't sufficient, you'll want to check for words being reversed, repeated letters/numbers, etc etc.

DavidMWilliams
+3  A: 

A slightly different (or simpler?) approach may be to measure the password strength based on the diversity of characters used.

For example award one point if:

  • Password has at least one lower case letter
  • Password has at least one upper case letter
  • Password has at least one number
  • Password has at least one special symbol
  • Password is at least 6 characters long

Now you have password strength on the scale of 0 to 5....

Hemant
A: 

Would it not be better to devise a set of guidelines or requirements (must contain letters, numbers, symbols and must be over 8 characters long and not be your username) or similar. This way you can test against those requirements and remove the ability for people to choose weak passwords such as dictionary words and short strings.

Splash
A: 

Thanks, but if I wanted to do it with a list where should i look?

http://stackoverflow.com/questions/1327690/testing-common-passwords/1327706#1327706
DavidMWilliams
Be patient! And edit your question or use the comments function instead of adding an answer to your question.
Gumbo