public function PhpassHashedPassword::getCountLog2 in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Password/PhpassHashedPassword.php \Drupal\Core\Password\PhpassHashedPassword::getCountLog2()
Parses the log2 iteration count from a stored hash or setting string.
Parameters
string $setting: An existing hash or the output of $this->generateSalt(). Must be at least 12 characters (the settings and salt).
Return value
int The log2 iteration count.
2 calls to PhpassHashedPassword::getCountLog2()
- PhpassHashedPassword::crypt in core/
lib/ Drupal/ Core/ Password/ PhpassHashedPassword.php - Hash a password using a secure stretched hash.
- PhpassHashedPassword::needsRehash in core/
lib/ Drupal/ Core/ Password/ PhpassHashedPassword.php - Check whether a hashed password needs to be replaced with a new hash.
File
- core/
lib/ Drupal/ Core/ Password/ PhpassHashedPassword.php, line 212 - Contains \Drupal\Core\Password\PhpassHashedPassword.
Class
- PhpassHashedPassword
- Secure password hashing functions based on the Portable PHP password hashing framework.
Namespace
Drupal\Core\PasswordCode
public function getCountLog2($setting) {
return strpos(static::$ITOA64, $setting[3]);
}