function _password_get_count_log2 in Simple LDAP 7
Same name and namespace in other branches
- 7.2 simple_ldap_user/simple_ldap_user.password.inc \_password_get_count_log2()
Parse the log2 iteration count from a stored hash or setting string.
2 calls to _password_get_count_log2()
- user_needs_new_hash in simple_ldap_user/
simple_ldap_user.password.inc - Check whether a user's hashed password needs to be replaced with a new hash.
- _password_crypt in simple_ldap_user/
simple_ldap_user.password.inc - Hash a password using a secure stretched hash.
File
- simple_ldap_user/
simple_ldap_user.password.inc, line 190 - Secure password hashing functions for user authentication.
Code
function _password_get_count_log2($setting) {
$itoa64 = _password_itoa64();
return strpos($itoa64, $setting[3]);
}