Skip to content

Commit 76af645

Browse files
committed
[symfony/security-bundle] set default algorithm to plaintext
1 parent 2d8f656 commit 76af645

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

symfony/security-bundle/6.4/config/packages/security.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ when@test:
3030
password_hashers:
3131
# By default, password hashers are resource intensive and take time. This is
3232
# important to generate secure password hashes. In tests however, secure hashes
33-
# are not important, waste resources and increase test times. The following
34-
# reduces the work factor to the lowest possible values.
33+
# are not important, waste resources and increase test times.
3534
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
36-
algorithm: auto
37-
cost: 4 # Lowest possible value for bcrypt
38-
time_cost: 3 # Lowest possible value for argon
39-
memory_cost: 10 # Lowest possible value for argon
35+
algorithm: plaintext # disable hashing all together
36+
# You can also use the following configuration to use the lowest possible values for bcrypt and argon:
37+
# algorithm: auto
38+
# cost: 4 # Lowest possible value for bcrypt
39+
# time_cost: 3 # Lowest possible value for argon
40+
# memory_cost: 10 # Lowest possible value for argon

0 commit comments

Comments
 (0)