Skip to content

Commit 0e80aba

Browse files
committed
feature #4369 [reference][configuration][security]Added key_length for pbkdf2 encoder (Guillaume-Rossignol)
This PR was merged into the 2.3 branch. Discussion ---------- [reference][configuration][security]Added key_length for pbkdf2 encoder | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | >=2.2 | Fixed tickets | - Commits ------- 730dbb8 [Config] Complete security encoder in full default configuration 4b9a885 [reference][configuration][security]Added key_length for pbkdf2 encoder
2 parents 2ab2e1f + 730dbb8 commit 0e80aba

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

reference/configuration/security.rst

+13
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,24 @@ Each part will be explained in the next section.
6262
hash_algorithm: sha512
6363
encode_as_base64: true
6464
iterations: 1000
65+
key_length: 40
6566
6667
# Example options/values for what a custom encoder might look like
6768
Acme\DemoBundle\Entity\User3:
6869
id: my.encoder.id
6970
71+
# BCrypt encoder
72+
# see the note about bcrypt below for details on specific dependencies
73+
Acme\DemoBundle\Entity\User4:
74+
algorithm: bcrypt
75+
cost: 13
76+
77+
# Plaintext encoder
78+
# it does not do any encoding
79+
Acme\DemoBundle\Entity\User5:
80+
algorithm: plaintext
81+
ignore_case: false
82+
7083
providers: # Required
7184
# Examples:
7285
my_in_memory_provider:

0 commit comments

Comments
 (0)