function _password_get_count_log2

7.x password.inc _password_get_count_log2($setting)
6.x password.inc _password_get_count_log2($setting)
5.x password.inc _password_get_count_log2($setting)

Parse the log2 iteration count from a stored hash or setting string.

2 calls to _password_get_count_log2()
user_needs_new_hash in includes/password.inc
_password_crypt in includes/password.inc
Hash a password using a secure stretched hash.

File

includes/password.inc, line 266
Secure password hashing functions for user authentication.

Code

function _password_get_count_log2($setting) {
  $itoa64 = _password_itoa64();
  return strpos($itoa64, $setting [3]);
}