3 ms·
How is exposing length of a password a vulnerability? My HN password is 16 characters long. Go and crack it.
by wao0uuno 7mo ago
How is exposing length of a password a vulnerability? My HN password is 16 characters long. Go and crack it.
- gnabgib 7mo agoSet it to 1-5 characters long, and let us know which you chose.
- sethops1 7mo agoYou're missing the point. If knowing the length of a password is helpful in cracking it, then it's already too short to be effective.
- gnabgib 7mo agoThe question was: > How is exposing length of a password a vulnerability? You're arguing exactly the point.. knowing the length of a password is helpful in cracking it. We all agree short is bad. Depending on your threat model, you (hopefully) don't use passwords as the only verification very many places - perhaps to unlock stronger secrets (ssh keys, an account without local login that can only connect with a certificate). You'd still rather a shoulder surfer doesn't know how many characters you pressed.
- hananova 7mo agoAny password of a length that could feasibly be cracked by way of brute force (So up to perhaps 8?) would only save 1/N of the total time taken to crack it with N being the length if one were to know the exact length. So yes, sure, technically there is an effect, but it's such a small effect, and only for people that should change their damn passwords already, that it's worth making the change for the improved UX.
- Dylan16807 7mo agoWhy? If I pick a random 1-5 character password out of the pool of possibilities, it's very very likely to be 5 characters, and letting you know it's not 1-4 characters does pretty much nothing to help you crack it. If I'm acting reasonably, I don't randomize the length, I pick a length long enough for the amount of security I want, and in that situation telling you the exact length reduces that security by much less than one bit.