File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments