-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.7] Mixing hashing algorithms not working #25458
Comments
I am also having issues with the algorithm checking not quite working as intended. The hashes I have have been generated over time with different versions of bcrypt and portions have stopped working with Laravel 5.7. See https://en.wikipedia.org/wiki/Bcrypt#Versioning_history - Bcrypt has had several versions over the years, with the latest identified by the Now, for whatever reason PHP's Since, behind the scenes Example $hash = '$2a$10$Wrk/FoakWwkX/tT0A/No5uu3IZrVu/e27QHTgpjHlPUQS3HwK0ei2';
password_verify('Test12345', $hash); // bool(true)
password_get_info($hash); // array(3) { ["algo"]=> int(0) ["algoName"]=> string(7) "unknown" ["options"]=> array(0) { } } I'll make a pull with a fix... |
Duplicate of #25586 |
This has been fixed in |
Description:
The RuntimeException thrown in illuminate/hashing/ArgonHasher.php, check method, breaks backwards compatibility when mixing hashing algorithms.
Currently trying to migrate hashes from bcrypt to Argon2. We rehash passwords after authentication and are running into issues when trying to even login with a bcrypt hash. RuntimeException on line 1 of snippet.
Steps To Reproduce:
Notes:
Removing throw from ArgonHasher returns to working as expected
The text was updated successfully, but these errors were encountered: