Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jimwins
Copy link
Member

@jimwins jimwins commented Sep 26, 2024

No description provided.

Comment on lines 87 to 91
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.
Copy link
Member

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()

Copy link
Member Author

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.

Copy link
Member

@cmb69 cmb69 left a 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.

Copy link
Member

@Girgias Girgias left a 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

Comment on lines 142 to 143
<function>password_verify</function> or <function>crypt</function> when
verifying passwords.
Copy link
Member

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)

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants