function PhpassHashedPassword::__construct
PhpassHashedPassword::__construct($countLog2)
Constructs a new password hashing instance.
Parameters
int $countLog2: Password stretching iteration count. Specifies the number of times the hashing function will be applied when generating new password hashes. The number of times is calculated by raising 2 to the power of the given value.
File
- core/lib/Drupal/Core/Password/PhpassHashedPassword.php, line 50
Class
- PhpassHashedPassword
- Secure password hashing functions based on the Portable PHP password hashing framework.
Namespace
Drupal\Core\PasswordCode
function __construct($countLog2) { // Ensure that $countLog2 is within set bounds. $this->countLog2 = $this->enforceLog2Boundaries($countLog2); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Password!PhpassHashedPassword.php/function/PhpassHashedPassword::__construct/8.1.x