You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using bcrypt.compare(password, user.password) with the original hashed user.password being something and the supplied password being something__ or something_, bcrypt.compare will return true.
Just wondering if this is intended behavior, if it is I'd consider this VERY bad practice.
The text was updated successfully, but these errors were encountered:
Note, though, that the maximum input length is 72 bytes as explained in the README, so if the input is longer than that, remaining bytes are truncated, which might explain the behavior.
When using
bcrypt.compare(password, user.password)
with the original hashed user.password beingsomething
and the supplied password beingsomething__
orsomething_
,bcrypt.compare
will return true.Just wondering if this is intended behavior, if it is I'd consider this VERY bad practice.
The text was updated successfully, but these errors were encountered: