public function FakePhpassHashedPassword::enforceLog2Boundaries in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php \Drupal\Tests\Core\Password\FakePhpassHashedPassword::enforceLog2Boundaries()
Ensures that $count_log2 is within set bounds.
Parameters
int $count_log2: Integer that determines the number of iterations used in the hashing process. A larger value is more secure, but takes more time to complete.
Return value
int Integer within set bounds that is closest to $count_log2.
Overrides PhpassHashedPassword::enforceLog2Boundaries
File
- core/
tests/ Drupal/ Tests/ Core/ Password/ PasswordHashingTest.php, line 185 - Contains \Drupal\Tests\Core\Password\PasswordHashingTest.
Class
- FakePhpassHashedPassword
- A fake class for tests.
Namespace
Drupal\Tests\Core\PasswordCode
public function enforceLog2Boundaries($count_log2) {
return parent::enforceLog2Boundaries($count_log2);
}