views:

379

answers:

5

I have tried different types of Password Strength Meters or Password checkers, but all give me different results when I test the same Password, because each implements its own algorithm.

Is there some official standard or guideline that can follow me to build my own Password Strength Meter.

If there was no official standard, what features should a good Password Strength Meter check for?

+1  A: 

As far as I know there is no standard as there are many definitions of what a good (i.e. strong) password should be.

Some things to consider:

  • Length - the longer the better
  • Mixed case
  • Includes numbers as well as characters
  • Includes non alpha numeric characters
  • Isn't a dictionary word
  • Is a phrase

and so on

ChrisF
"Includes no alpha numeric characters"? You just said in the line before "Includes numbers as well as characters" which is alpha-numeric?
Kaleb Pederson
That was a typo. Fixed now.
ChrisF
A: 

I'd also add : Doesn't include the username string, or even a part of the username if it's a long one.

Daan
A: 

I'll throw another criterion in the ring:

  • No "keyboard walks"

Because so many people expect users to remember passwords that are difficult to remember, they resort to keyboard patterns to tame the madness. Throw in shifted versions for good measure.

Oh, and nothing on Twitter's forbidden password list, either.

John at CashCommons
A: 

There are a number of guidelines (google) that give guidance on what makes a strong password, most of which is common sense. At the end of the day you can apply your own policy (or Company policy if they have one) for what is strong and what is not and your decision would probably be influenced by what it is you are trying to protect.

As @jay said, I don't think standardising such a thing would be a wise practice!

http://net.tutsplus.com/tutorials/javascript-ajax/build-a-simple-password-strength-checker/

http://www.ibm.com/developerworks/lotus/library/ls-password_quality/index.html#N100F5

Thought this site was particularly good as it gives an idea of the algorithm they are applying and how they calculate strength.

http://www.passwordmeter.com/

David
+1  A: 

Consider the following:

  • Length
  • Mixed case
  • Not many repeated characters
  • Includes letters, numbers, and symbols
  • Does not include part of the username
  • Not similar to prior passwords
  • Does not hash to the same thing as a weak password
  • Is not a keyboard walk
  • Is not related to the individual
  • Does not end with the common suffixes
  • Does not start with the common prefixes

See Bruce Schneier's post on passwords as well as this post.

Kaleb Pederson
great Schneier article. is very useful. Thanks.
RRUZ