@@ -65,8 +65,12 @@ Each part will be explained in the next section.
6565ignore_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 :
6970algorithm :argon2i
71+ memory_cost :1024 # Amount in KiB
72+ time_cost :2 # Number of iterations
73+ threads :2 # Number of parallel threads
7074
7175providers :# Required
7276# Examples:
@@ -626,6 +630,9 @@ Using the Argon2i Password Encoder
626630encoders :
627631Symfony\Component\Security\Core\User\User :
628632algorithm :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
636643class =" Symfony\Component\Security\Core\User\User"
637644algorithm =" 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 ));