Skip to content

Commit 44c434c

Browse files
committed
Minor tweaks
1 parent a35ec32 commit 44c434c

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

best_practices/security.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ site (or maybe nearly *all* sections), use the ``access_control`` area.
3131

3232
Use the ``auto`` encoder for hashing your users' passwords.
3333

34-
If your users have a password, then we recommend hashing it using the ``auto``
35-
encoder.
36-
3734
.. note::
3835

3936
:ref:`Sodium <reference-security-sodium>` is the hashing algorithm as

reference/configuration/security.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,15 @@ password) so you don't have to deal with it.
283283
Using the "auto" Password Encoder
284284
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
285285

286-
It uses Sodium as default, falling back to the `bcrypt password hashing function`_,
287-
which produces encoded passwords with ``60`` characters long, so make sure to allocate
288-
enough space for them to be persisted.
289-
Also, passwords include the `cryptographic salt`_ inside them (it's generated
290-
automatically for each new password) so you don't have to deal with it.
286+
It selects automatically the best possible encoder. Currently, it tries to use
287+
Sodium by default and falls back to the `bcrypt password hashing function`_ if
288+
not possible. In the future, when PHP adds new hashing techniques, it may use
289+
different password hashers.
290+
291+
It produces encoded passwords with ``60`` characters long, so make sure to
292+
allocate enough space for them to be persisted. Also, passwords include the
293+
`cryptographic salt`_ inside them (it's generated automatically for each new
294+
password) so you don't have to deal with it.
291295

292296
Its only configuration option is ``cost``, which is an integer in the range of
293297
``4-31`` (by default, ``13``). Each single increment of the cost **doubles the

0 commit comments

Comments
 (0)