-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Improved Bcrypt password encoder #6023
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
Conversation
Yes, I know. It is a comment in there that it is still on the TODO list to use SecureRandom. But I want to know, exactly how am I violating the coding style? |
Note that it would be nice if you also support PHP 5.5 native function |
* A secure random generator | ||
* @var SecureRandomInterface | ||
*/ | ||
private $secure_random; |
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 should be a camelCased name
@stof are we going to use this pull request? |
Let's not spread the effort. I'm taking your suggestions to my PR into account when I think they are reasonable, and working on it when I have time. If you won't agree with my PR when it's gone final and merged, you can open another PR with fixes. |
Well, it was the most up to date version of @elnur's PR at the time when I wrote it. |
This is my improvement to the BCryptPasswordEncoder that first Elnur wrote a pull request for.
Fix for issue: #5932