DEV Community

loading...

Discussion on: Changing your name is a hard unsolved problem in Computer Science

Collapse
ashleypinner profile image
Ashley Pinner

Bcrypt is limited to 72 characters. It's the only reasonable limitation, as you would not want password managers to assume the users password was longer than required to authenticate. (especially if you migrated upwards in hash. )

Thread Thread
hellokyyt profile image
Kyle Harrison

Totally true, anything longer and BCrypt will truncate. I like Argon2's input limit of 4.29b characters much better hehe

That said, 72 characters isn't the worst length limit, but when you're asked by your bank for a max limit of 14 or something similarly pathetic like that