File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Filter options
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.
65
65
ignore_case : false
66
66
67
67
# 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 :
69
70
algorithm : argon2i
71
+ memory_cost : 1024 # Amount in KiB
72
+ time_cost : 2 # Number of iterations
73
+ threads : 2 # Number of parallel threads
70
74
71
75
providers : # Required
72
76
# Examples:
@@ -626,6 +630,9 @@ Using the Argon2i Password Encoder
626
630
encoders :
627
631
Symfony\Component\Security\Core\User\User :
628
632
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
629
636
630
637
.. code-block :: xml
631
638
@@ -635,6 +642,9 @@ Using the Argon2i Password Encoder
635
642
<encoder
636
643
class =" Symfony\Component\Security\Core\User\User"
637
644
algorithm =" argon2i"
645
+ memory_cost =" 16384"
646
+ time_cost =" 2"
647
+ threads =" 4"
638
648
/>
639
649
</config >
640
650
@@ -648,6 +658,9 @@ Using the Argon2i Password Encoder
648
658
'encoders' => array(
649
659
User::class => array(
650
660
'algorithm' => 'argon2i',
661
+ 'memory_cost' => 16384,
662
+ 'time_cost' => 2,
663
+ 'threads' => 4,
651
664
),
652
665
),
653
666
));
You can’t perform that action at this time.
0 commit comments