Skip to content

Commit 4f4a0a5

Browse files
committed
minor #8925 Added a tip about tests and BCrypt (javiereguiluz)
This PR was squashed before being merged into the 3.3 branch (closes #8925). Discussion ---------- Added a tip about tests and BCrypt Related to symfony/demo#737. Commits ------- af8537a Added a tip about tests and BCrypt
2 parents 8d0fc66 + af8537a commit 4f4a0a5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reference/configuration/security.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,12 @@ persisting the encoded password alone is enough.
612612
All the encoded passwords are ``60`` characters long, so make sure to
613613
allocate enough space for them to be persisted.
614614

615+
.. tip::
616+
617+
A simple technique to make tests much faster when using BCrypt is to set
618+
the cost to ``4``, which is the minimum value allowed, in the ``test``
619+
environment configuration.
620+
615621
.. _reference-security-firewall-context:
616622

617623
Firewall Context

0 commit comments

Comments
 (0)