function PhpassHashedPasswordLog2BoundariesDouble::enforceLog2Boundaries

Same name and namespace in other branches
  1. 11.x core/modules/phpass/tests/src/Unit/PasswordVerifyTest.php \Drupal\Tests\phpass\Unit\PhpassHashedPasswordLog2BoundariesDouble::enforceLog2Boundaries()

Exposes this method as public for tests.

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 PhpassHashedPasswordBase::enforceLog2Boundaries

File

core/modules/phpass/tests/src/Unit/PasswordVerifyTest.php, line 180

Class

PhpassHashedPasswordLog2BoundariesDouble
Test double for test coverage of enforceLog2Boundaries().

Namespace

Drupal\Tests\phpass\Unit

Code

public function enforceLog2Boundaries($count_log2) {
  return parent::enforceLog2Boundaries($count_log2);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.