public PhpassHashedPassword::getCountLog2($setting)
Parses the log2 iteration count from a stored hash or setting string.
string $setting: An existing hash or the output of $this->generateSalt(). Must be at least 12 characters (the settings and salt).
int The log2 iteration count.
public function getCountLog2($setting) { return strpos(static::$ITOA64, $setting[3]); }
© 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::getCountLog2/8.1.x