function PhpassHashedPassword::__construct

Constructs a new phpass 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

drupal/core/lib/Drupal/Core/Password/PhpassHashedPassword.php, line 53
Definition of Drupal\Core\Password\PhpassHashedPassword

Class

PhpassHashedPassword
Secure password hashing functions based on the Portable PHP password hashing framework.

Namespace

Drupal\Core\Password

Code

function __construct($countLog2) {

  // Ensure that $countLog2 is within set bounds.
  $this->countLog2 = $this
    ->enforceLog2Boundaries($countLog2);
}