Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Config/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,14 +354,14 @@ class Auth extends BaseConfig
* --------------------------------------------------------------------
* The BCRYPT method of hashing allows you to define the "cost"
* or number of iterations made, whenever a password hash is created.
* This defaults to a value of 10 which is an acceptable number.
* This defaults to a value of 12 which is an acceptable number.
* However, depending on the security needs of your application
* and the power of your hardware, you might want to increase the
* cost. This makes the hashing process takes longer.
*
* Valid range is between 4 - 31.
*/
public int $hashCost = 10;
public int $hashCost = 12;

/**
* If you need to support passwords saved in versions prior to Shield v1.0.0-beta.4.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/PasswordsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function testHash(): string
public function testNeedsRehashTakesCareOptions(string $hashedPassword): void
{
$config = new AuthConfig();
$config->hashCost = 12;
$config->hashCost = 13;
$passwords = new Passwords($config);

$result = $passwords->needsRehash($hashedPassword);
Expand Down