diff --git a/src/Illuminate/Hashing/BcryptHasher.php b/src/Illuminate/Hashing/BcryptHasher.php index 26f928cb5708..f74edab88805 100755 --- a/src/Illuminate/Hashing/BcryptHasher.php +++ b/src/Illuminate/Hashing/BcryptHasher.php @@ -12,7 +12,7 @@ class BcryptHasher extends AbstractHasher implements HasherContract * * @var int */ - protected $rounds = 10; + protected $rounds = 12; /** * Indicates whether to perform an algorithm check. diff --git a/tests/Hashing/HasherTest.php b/tests/Hashing/HasherTest.php index 19a33b93d84f..3559cc0303d3 100755 --- a/tests/Hashing/HasherTest.php +++ b/tests/Hashing/HasherTest.php @@ -54,6 +54,7 @@ public function testBasicBcryptHashing() $this->assertFalse($hasher->needsRehash($value)); $this->assertTrue($hasher->needsRehash($value, ['rounds' => 1])); $this->assertSame('bcrypt', password_get_info($value)['algoName']); + $this->assertGreaterThanOrEqual(12, password_get_info($value)['options']['cost']); $this->assertTrue($this->hashManager->isHashed($value)); }