Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why restrict the length of a password?

I've just signed up to a site to purchase some goods, and when I tried to enter my (reasonably secure) password I was informed it was too long, and that I should enter a password between 5 & 10 characters! What is the point in that? Who makes decisions like this? Surely the ideal password would be a really long and complicated one? Why do people insist on trying to restrict what types of passwords you can use?

Have you had to implement a login to a website? Was the login for secure purposes (e.g. purchasing goods). What (if any) restrictions did you place on the user's password? What were your reasons for the decision?

like image 490
Mark Ingram Avatar asked Mar 31 '09 18:03

Mark Ingram


People also ask

Why do companies limit password length?

Why we limit. The brokerage and banking company Charles Schwab has strict length limits—passwords can be no longer than eight characters, no shorter than six. The fact that sensitive financial information is protected by no more than eight letters, numbers, or symbols doesn't sit well with some customers.

Should you limit password length?

When it comes to making strong passwords, the single most important factor is the length of the password. As long as a password isn't easily guessable by other means (e.g. use of common words, username, repeating characters) length is your best friend for mitigating brute force attacks.

Why does password length matter?

According to guidance offered by the National Institute of Standards and Technology (NIST), password length is more important than password complexity. This actually makes a lot of sense as longer passphrases take longer to crack, and they are easier to remember than a string of meaningless characters.

Why are passwords limited to 20?

94 ^ 20 is far bigger number than 2 ^ 128. Sparing you any more big numbers, a 19 char pass (94 ^ 19) is significantly smaller than 2 ^ 128, so 20 chars is the shortest length of password that still (theoretically) produces more combinations than an MD5 hash can.


1 Answers

Restricting the size of a password is an attempt to save storage space. It pretty much indicates that your password is being stored plainly in their database, so they want to restrict its size. Otherwise it's just a restriction because the implementors don't know any better. Either way it's a bad sign.

You might want to contact the admins of the site and ask them about it. They should be storing hashes, not passwords, which are always the same size no matter how big the password is. There really should be no limit to the size of password you enter, nor the domain of characters you're permitted to input.

like image 159
Welbog Avatar answered Sep 21 '22 20:09

Welbog