Closed hakouguelfen closed 2 months ago
bcrypt has a maximum password length of 72 bytes (or 71 if you could a NUL terminator byte).
It seems rust-bcrypt
silently truncates the input to 72 bytes if it exceeds this limit:
https://github.com/Keats/rust-bcrypt/blob/9c9e138/src/lib.rs#L117-L119
It seems like it should instead return an error in the event the input is longer than 72 bytes, rather than silently truncating.
thank you
Hi, I'm encountering an issue with the verify function where two different JWT tokens are both validating successfully against the same hashed value.