r/eli5_programming • u/lowfox • Mar 26 '18
ELI5: Why website developers would ever limit password lengths?
Occasionally (often) when signing up for a new financial service site, like a bank or credit union, I want to use a longer password. As I understand it, longer memorable passwords are more secure than shorter cryptic ones.
I can understand limiting lengths to maybe 500 characters or something absurd, but I often find limits of sometimes 12 characters. This makes absolutely no sense to me.
Bonus, why limit to alphanumeric as well, which I also often see? I can understand some special characters, but allowing normal puncuation and symbols seems to be another great way to increase the security "alphabet," and yet often large financial institutions don't allow them in passwords.
If you're an engineer who has limited this, why did you do it? If you're an engineer and understand why this might happen, please ELI5?
6
u/[deleted] Mar 26 '18
Do you want a reason or a good reason?
Reasons might be that your password ends up being a database column or whatever and disk space aint free! Or that your password gets hashed and cpu time aint free!
Given the relative tiny cost of handling 120 vs 12 characters, as compared to the potential large cost in loss of customers, trust, fines from regulators etc, from being hacked, these are clearly quite stupid reasons, but they're all I can think of
4
u/AshenLordOfCinder Mar 26 '18
Password Length:
Alphanumeric:
Also usability all around. Most people expect to remember a password that is 8-12 characters. It would be nice if people let you do more, but since most place don't allow you to, the general population would most likely forget if they used one longer. This also means higher load on an email server for password resets.
0
u/Balduracuir Mar 27 '18
Simple reason: the po was on Facebook yesterday, he had to change his password, he saw the controls and asked for the same and no one tried to challenge the need :)
Or simpler, the po asked for a password solution cheap, so we took the one from framework/cms and it came with those controls... after all, if it is in the framework, it should be a good practice, no?
Imho, it's that way those controls come into production.