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

Appearance settings

Commit a71085e

Browse filesBrowse files
committed
minor #9300 Update configuration for argon2i encoder (CoalaJoe)
This PR was merged into the master branch. Discussion ---------- Update configuration for argon2i encoder From: symfony/symfony#26175 Commits ------- a3e9bf2 Update configuration for argon2i encoder
2 parents bdcf592 + a3e9bf2 commit a71085e
Copy full SHA for a71085e

File tree

Expand file treeCollapse file tree

1 file changed

+14
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-1
lines changed

‎reference/configuration/security.rst

Copy file name to clipboardExpand all lines: reference/configuration/security.rst
+14-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.