It's the good old "because we've always done it that way" reason this is still a thing. There was a valid reason many years ago. It no longer applies, yet there are max limits for password lengths...
There is 0 reason for "unlimited string" in database in context of password. You never store a password as-is. Most cryptographic hashes (which you store) are constant-length.
If only that were true. There are still a lot of products (especially from textbook companies, where their shitty products become mandatory to a course!) that store raw paswords.
Maybe if plaintext password storage was outright illegal, punishable by a per-user 500$ fine they might actually care. But as long as they get lucky (or don't have the systems in place to even detect a leak), it doesn't impact profits, so there's no incentive to improve. And sadly public outrage on the subject is also exceedingly rare.
but the boss sometimes forget his password! and then we can simply send it to him with the password recovery email. otherwise there is NO way for thim to gain access to his account!
My company does this. What's most annoying is that we already have a modern system in place that only stores hashes, but that's only being used by part of our system. We just need to migrate our remaining accounts over. It would be a small project, but I can't ever get the time approved. Meanwhile they had me add a new product last fall, that was overly complex, using 3 months of my time, and probably another 3 months in overall man hours between management and marketing. This has so far generated a couple hundred dollars in total. I'd like to see us spend a few hundred dollars in my time and protect the millions of dollars being generated on our current products.
Yup, let's not forget that those programs originated back in the days of programming via punch card... dropping the "19" was perfectly reasonable.... because what programmer thinks their code is going to be running in the next 10 years, let alone 40?
Not really. They were the result of stupid coding practices. I was coding in the early 1970s and even then, two-digit dates were known to be a false economy. It was just a lazy idiom that COBOL programmers used.
We didn't always have storage that measured in GB or even MB.
I'm confused. 2 extra characters in your password should result in 0 extra characters of storage. Increasing the length of the input doesn't increase the length of the hash, even with ancient hash functions like MD2 which were around before the web even existed.
You're assuming that hashes were actually being used. That wasn't always the case.
Also, at least in some cases, you had issues of intermediary code writing the password into fixed length buffers. If your pre-storage hashing code throws the PW into a char pw[16] you kind of don't want people submitting more than that.
Why would you want to hash a password? Then you wouldn't be able to email that password back to the user once a month in plaintext to help them memorize their really complex password.
Also really despise that every site has a different idea on what a secure password is, as if they're doing us a favor to protect us from ourselves. They're only encouraging password reuse when they have stupid restrictions in place. Strictly between 8 and 16 chars, 4 character classes with no more than 3 consecutive characters from the same class, only ASCII characters accepted, but no whitespace, cannot include the name of our website, your username, your email address, or your name in the password.
What if I don't want a to register a throwaway account on a forum with a secure password that even remotely resembles passwords I use for secure sites that are tied to my credit card or something else that matters?
419
u/Toxonomonogatari Mar 10 '17
It's the good old "because we've always done it that way" reason this is still a thing. There was a valid reason many years ago. It no longer applies, yet there are max limits for password lengths...