Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bufferoverflow
· 1y ago · 0 comments
BCrypt should loudly fail if more than 72 bytes are sent to its input.
Comments
[–]
taurknaut
1y ago
Maybe it should. Discarding the rest of the bytes works fine for
passwords
, though. I guess that's just not sufficient.
[–]
pclmulqdq
1y ago
In my book, discarding entropy is a generally dumb thing to do. Passwords are usually under 72 chars, but a lot of people use concatenations of usernames and passwords in their hash to get guaranteed domain separation between users.