Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
davedx
· 1y ago · 0 comments
Wait wait. Why would you truncate it after input unless... you're storing it in plaintext?
Comments
[–]
orblivion
1y ago
Maybe the KDF gets really slow with a super long input.
[–]
zja
1y ago
You truncate passwords to prevent DOS
[–]
lesuorac
1y ago
Why not either show an error or do a client-side hash so there's a fixed length?
[–]
orblivion
1y ago
Showing an error is probably the right thing. Client-side mitigations wouldn't prevent a DOS.