Skip to content

Commit

Permalink
Added a note about "encoding vs. hashing" passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed May 21, 2016
1 parent 1e1ab96 commit a5cb692
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,12 @@ is defined by the ``target`` parameter above (e.g. the ``homepage``).
Dynamically Encoding a Password
-------------------------------

.. note::

For historical reasons, Symfony uses the term *"password encoding"* when it
should really refer to *"password hashing"*. The "encoders" are in fact
`cryptographic hash functions`_.

If, for example, you're storing users in the database, you'll need to encode
the users' passwords before inserting them. No matter what algorithm you
configure for your user object, the hashed password can always be determined
Expand Down Expand Up @@ -1319,4 +1325,5 @@ Learn More from the Cookbook

.. _`online tool`: https://www.dailycred.com/blog/12/bcrypt-calculator
.. _`frameworkextrabundle documentation`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html
.. _`cryptographic hash functions`: https://en.wikipedia.org/wiki/Cryptographic_hash_function
.. _`HWIOAuthBundle`: https://github.com/hwi/HWIOAuthBundle

0 comments on commit a5cb692

Please sign in to comment.