this post was submitted on 17 Jul 2023
422 points (88.6% liked)

Programmer Humor

38314 readers
9 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 2 years ago (1 children)

Not necessarily. There is another reason. Password hash functions like PBKDF2 are, by design, slow. Allowing extremely long passwords while using such a hash function creates a denial-of-service vulnerability.

Assuming the hash function takes proportionally more time to compute the hash of a longer password, of course. I believe they do, but I'm not certain.

[โ€“] Sonotsugipaa 1 points 2 years ago

This is why I believe something like a 1000 character limit is reasonable, but a 14 one is not.