Skip to content

[WIP] [security] adding a tip about supported algorithm for 'hash' function #3325

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

Merged
merged 2 commits into from
Dec 26, 2013

Conversation

FlorianLB
Copy link

Q A
Doc fix? yes
New docs? no
Applies to 2.2+
Fixed tickets #3158

@wouterj
Copy link
Member

wouterj commented Dec 14, 2013

Could you please add the PR format to your PR description?

@@ -1358,6 +1358,10 @@ the password is simply run through the ``sha1`` algorithm one time and without
any extra encoding. You can now calculate the hashed password either programmatically
(e.g. ``hash('sha1', 'ryanpass')``) or via some online tool like `functions-online.com`_

.. tip::

Supported algorithms for this method depend on your PHP version. Full list is available calling the PHP method ``hash_algos()``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should break a line after the first word that crosses the 72th character.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And what about "A full list is available [...]"?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and, as last, you can use a PHP.net link:

:phpfunction:`hash_algos`

@xabbuh
Copy link
Member

xabbuh commented Dec 14, 2013

hash_algos() is a function not a method, isn't it?

@FlorianLB
Copy link
Author

Thx for feedback. Fixed.

weaverryan added a commit that referenced this pull request Dec 26, 2013
[WIP] [security] adding a tip about supported algorithm for 'hash' function
@weaverryan weaverryan merged commit 18ea83c into symfony:2.2 Dec 26, 2013
@weaverryan
Copy link
Member

Nice work Florian! Very nice to meet you at the conference!

@weaverryan weaverryan mentioned this pull request Dec 26, 2013
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.

4 participants