From 4b9a885883a38a19fd224dbffa95a53d0e08e83f Mon Sep 17 00:00:00 2001 From: Guillaume Rossignol Date: Sat, 25 Oct 2014 10:53:47 +0200 Subject: [PATCH 1/2] [reference][configuration][security]Added key_length for pbkdf2 encoder --- reference/configuration/security.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/reference/configuration/security.rst b/reference/configuration/security.rst index 0a3aaebd6e6..5e0353fedbd 100644 --- a/reference/configuration/security.rst +++ b/reference/configuration/security.rst @@ -62,6 +62,7 @@ Each part will be explained in the next section. hash_algorithm: sha512 encode_as_base64: true iterations: 1000 + key_length: 40 # Example options/values for what a custom encoder might look like Acme\DemoBundle\Entity\User3: From 730dbb871757b26175325e6da07910db9f212107 Mon Sep 17 00:00:00 2001 From: Guillaume Rossignol Date: Wed, 29 Oct 2014 21:12:54 +0100 Subject: [PATCH 2/2] [Config] Complete security encoder in full default configuration Added bcrypt and plaintext encoder --- reference/configuration/security.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reference/configuration/security.rst b/reference/configuration/security.rst index 5e0353fedbd..bac3337ac73 100644 --- a/reference/configuration/security.rst +++ b/reference/configuration/security.rst @@ -68,6 +68,18 @@ Each part will be explained in the next section. Acme\DemoBundle\Entity\User3: id: my.encoder.id + # BCrypt encoder + # see the note about bcrypt below for details on specific dependencies + Acme\DemoBundle\Entity\User4: + algorithm: bcrypt + cost: 13 + + # Plaintext encoder + # it does not do any encoding + Acme\DemoBundle\Entity\User5: + algorithm: plaintext + ignore_case: false + providers: # Required # Examples: my_in_memory_provider: