File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -356,14 +356,14 @@ class Auth extends BaseConfig
356
356
* --------------------------------------------------------------------
357
357
* The BCRYPT method of hashing allows you to define the "cost"
358
358
* or number of iterations made, whenever a password hash is created.
359
- * This defaults to a value of 10 which is an acceptable number.
359
+ * This defaults to a value of 12 which is an acceptable number.
360
360
* However, depending on the security needs of your application
361
361
* and the power of your hardware, you might want to increase the
362
362
* cost. This makes the hashing process takes longer.
363
363
*
364
364
* Valid range is between 4 - 31.
365
365
*/
366
- public int $ hashCost = 10 ;
366
+ public int $ hashCost = 12 ;
367
367
368
368
/**
369
369
* If you need to support passwords saved in versions prior to Shield v1.0.0-beta.4.
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public function testHash(): string
52
52
public function testNeedsRehashTakesCareOptions (string $ hashedPassword ): void
53
53
{
54
54
$ config = new AuthConfig ();
55
- $ config ->hashCost = 12 ;
55
+ $ config ->hashCost = 13 ;
56
56
$ passwords = new Passwords ($ config );
57
57
58
58
$ result = $ passwords ->needsRehash ($ hashedPassword );
You can’t perform that action at this time.
0 commit comments