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\Password

Code

function __construct($countLog2) {
  // Ensure that $countLog2 is within set bounds.
  $this->countLog2 = $this->enforceLog2Boundaries($countLog2);
}
doc_Drupal
2016-10-29 09:33:51
Comments
Leave a Comment

Please login to continue.