-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate Crypto::Bcrypt::Password is a valid hash #6467
Validate Crypto::Bcrypt::Password is a valid hash #6467
Conversation
#CodeTriage I figured it was better to use the value of 4 rather than to change the other index values. |
The pattern is more complex than that. Pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @ysbaddaden notes, this is by far not a full validation, but it's a first improvement.
I'm not sure if it should close #5357 though...
@miketheman Could you rebase on master to make sure it's all good? |
Resolves crystal-lang#5357 Signed-off-by: Mike Fiedler <miketheman@gmail.com>
ded97be
to
5dae49e
Compare
Rebased! |
Co-Authored-By: miketheman <miketheman@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good, but I think that to_i
can also fail (and maybe other cases?)
Merging this, further enhancements are always possible. Thank you @miketheman ❤️ |
Thanks @straight-shoota ! |
Resolves #5357
Signed-off-by: Mike Fiedler miketheman@gmail.com