Isn’t this a dead giveaway that the password is being stored in plain text? Like if it’s being hashed who cares about length? It will always end up the same length post-hash
Short passwords are easier to brute force. Depending on how fast they can be tried, around 8-12 characters is the safe minimum these days. Even more if you want to future proof.
Longer passwords take longer to hash. There is a DoS attack where you keep the server busy by constantly resetting password with an extremely long string. Owasp recommends 64 as the max for this reason.
Like shouldn't the client input do the hashing? Hash client side and do all verifications client (in browser) side and only ever see store the hashed pw on the server?
Then doing the password check is just comparing the hash the login window sent you and the hash you stored.
Okay, so now the hash is the password itself since that's what you need to send to get access. With HTTPS, I'm not sure it matters much, but it certainly doesn't give you any security advantages.
Well it matters in so far that the server can never leak the password as it has never seen it... The hash should then be of course be something like 255 bytes string or a 256 bit number That would automatically make any "password" the same length with no dictionary or social connection.
So what? Sure, there's some insane password out there that happens to have the same hash as mine, IF that particular salt is used. And a different password collides if different salt is used. You know what? That's **already possible** and it hasn't broken passwords.
Okay, here. I'll give you a massively simplified example.
I have generated a password by taking the ASCII Latin alphabet (upper and lowercase) ten times and shuffling the letters. That's 52 characters of password. Here's its SHA1: 86f5d24a6fce0b948815f6170f0f31d28ce46ecd That's only 40 characters of hex, 160 bits of password. And that's a weak hash, no salt, no repeated hashing, none of the normal security features that you would expect of actual password hashing.
Sure, you're guaranteed that SOME password shorter than 52 bytes has the same hash. Does that actually help you, though? Can you use that information to do anything other than brute force passwords until you find a match?
Hash collisions can happen even with shorter passwords.
To be fair, legacy bank systems that Stripe connects to do not accept a lot of characters. The error came from HCB, and while I used to be able to put 46009361 as my preferred name, HCB started using that for Stripe.
Source: People in the Hack Club Slack can see this message.
12
u/Myszolow Oct 03 '26
PasswordMustContainNumberUppercaseCharacterSpecialCharacterNotLessThan8NotMoreThan16
7
u/xcski_paul Oct 04 '26
Ok, I think the second one is the proper spelling of the B.C. town of Squamish, but I don’t get what 46009361 could be.
2
u/46009361 Oct 03 '26
The name
Pokémonworks fine with the validator that returned the error message in the title.2
u/-Po-Tay-Toes- Oct 04 '26
Those are Arabic numerals though
0
u/DogmaticParadigm87 Oct 03 '26 edited Oct 04 '26
"Preferred name must only contain characters in the Latin alphabet."
Then the form quietly maps everything else to a serial number and calls it a day.
Pam was right. They're the same picture — to the database.