-
Notifications
You must be signed in to change notification settings - Fork 729
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
Tweak the title and depersonalize the password hashing FAQ section #3796
base: master
Are you sure you want to change the base?
Conversation
faq/passwords.xml
Outdated
Another option is the <function>crypt</function> function, which | ||
supports several hashing algorithms. When using | ||
this function, you are guaranteed that the algorithm you select is | ||
this function, it is guaranteed that the algorithm selected is | ||
available, as PHP contains native implementations of each supported | ||
algorithm, in case one or more are not supported by your system. | ||
algorithm, in case one or more are not supported by the system. |
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.
I don't think I would recommend crypt()
, the recommendation should really just be password_hash()
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.
Okay, tackled the TODO that was already there. Just mention crypt()
in passing now and leave the text discouraging its use.
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.
Thank you! This looks good to me.
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.
One final comment but LGTM otherwise
faq/passwords.xml
Outdated
<function>password_verify</function> or <function>crypt</function> when | ||
verifying passwords. |
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.
password_verify()
can be used with outputs from crypt()
so maybe drop the implicit suggestion that one can compare two crypt hashes? (something something timing attacks)
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.
Good point, and because I cut out the other (longer) reference to timing attacks, I've added in a new warning.
No description provided.