Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita3e9bf2

Browse files
committed
Update configuration for argon2i encoder
1 parent45ba13c commita3e9bf2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

‎reference/configuration/security.rst‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ Each part will be explained in the next section.
6565
ignore_case:false
6666
6767
# Argon2i encoder
68-
Acme\DemoBundle\Entity\User6:
68+
# See https://wiki.php.net/rfc/argon2_password_hash#resolved_cost_factors
69+
Acme\DemoBundle\Entity\User7:
6970
algorithm:argon2i
71+
memory_cost:1024# Amount in KiB
72+
time_cost:2# Number of iterations
73+
threads:2# Number of parallel threads
7074
7175
providers:# Required
7276
# Examples:
@@ -626,6 +630,9 @@ Using the Argon2i Password Encoder
626630
encoders:
627631
Symfony\Component\Security\Core\User\User:
628632
algorithm:argon2i
633+
memory_cost:16384# Amount in KiB. 16 MiB
634+
time_cost:2# Number of iterations
635+
threads:4# Number of parallel threads
629636
630637
..code-block::xml
631638
@@ -635,6 +642,9 @@ Using the Argon2i Password Encoder
635642
<encoder
636643
class="Symfony\Component\Security\Core\User\User"
637644
algorithm="argon2i"
645+
memory_cost="16384"
646+
time_cost="2"
647+
threads="4"
638648
/>
639649
</config>
640650
@@ -648,6 +658,9 @@ Using the Argon2i Password Encoder
648658
'encoders' => array(
649659
User::class => array(
650660
'algorithm' => 'argon2i',
661+
'memory_cost' => 16384,
662+
'time_cost' => 2,
663+
'threads' => 4,
651664
),
652665
),
653666
));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp