@@ -129,12 +129,12 @@ encoding algorithm. Also, each algorithm defines different config options:
129129 # ...
130130
131131 encoders :
132- # bcrypt encoder with default options
133- App\Entity\User : ' bcrypt '
132+ # auto encoder with default options
133+ App\Entity\User : ' auto '
134134
135- # bcrypt encoder with custom options
135+ # auto encoder with custom options
136136 App\Entity\User :
137- algorithm : ' bcrypt '
137+ algorithm : ' auto '
138138 cost : 15
139139
140140 # Sodium encoder with default options
@@ -162,16 +162,16 @@ encoding algorithm. Also, each algorithm defines different config options:
162162
163163 <config >
164164 <!-- ... -->
165- <!-- bcrypt encoder with default options -->
165+ <!-- auto encoder with default options -->
166166 <encoder
167167 class =" App\Entity\User"
168- algorithm =" bcrypt "
168+ algorithm =" auto "
169169 />
170170
171- <!-- bcrypt encoder with custom options -->
171+ <!-- auto encoder with custom options -->
172172 <encoder
173173 class =" App\Entity\User"
174- algorithm =" bcrypt "
174+ algorithm =" auto "
175175 cost =" 15"
176176 />
177177
@@ -209,14 +209,14 @@ encoding algorithm. Also, each algorithm defines different config options:
209209 $container->loadFromExtension('security', [
210210 // ...
211211 'encoders' => [
212- // bcrypt encoder with default options
212+ // auto encoder with default options
213213 User::class => [
214- 'algorithm' => 'bcrypt ',
214+ 'algorithm' => 'auto ',
215215 ],
216216
217- // bcrypt encoder with custom options
217+ // auto encoder with custom options
218218 User::class => [
219- 'algorithm' => 'bcrypt ',
219+ 'algorithm' => 'auto ',
220220 'cost' => 15,
221221 ],
222222
@@ -278,14 +278,14 @@ sure to allocate enough space for them to be persisted. Also, passwords include
278278the `cryptographic salt `_ inside them (it's generated automatically for each new
279279password) so you don't have to deal with it.
280280
281- .. _reference-security-bcrypt :
281+ .. _reference-security-encoder-auto :
282282
283- Using the BCrypt Password Encoder
283+ Using the "auto" Password Encoder
284284~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
285285
286- It uses the `bcrypt password hashing function `_ and it's recommended to use it
287- when it's not possible to use Sodium. The encoded passwords are ``60 ``
288- characters long, so make sure to allocate enough space for them to be persisted.
286+ It uses Sodium as default, falling back to the `bcrypt password hashing function `_,
287+ which produces encoded passwords with ``60 `` characters long, so make sure to allocate
288+ enough space for them to be persisted.
289289Also, passwords include the `cryptographic salt `_ inside them (it's generated
290290automatically for each new password) so you don't have to deal with it.
291291
@@ -311,7 +311,7 @@ Using the PBKDF2 Encoder
311311~~~~~~~~~~~~~~~~~~~~~~~~
312312
313313Using the `PBKDF2 `_ encoder is no longer recommended since PHP added support for
314- Sodium and bcrypt . Legacy application still using it are encouraged to upgrade
314+ Sodium and BCrypt . Legacy application still using it are encouraged to upgrade
315315to those newer encoding algorithms.
316316
317317firewalls
0 commit comments