Lines Matching refs:setting
11 * used by setting the variable password_inc to the name of the PHP file
134 * @param $setting
142 function _password_crypt($algo, $password, $setting) {
148 if ($setting[0] == '$' && $setting[3] == '$') {
149 if (password_verify($password, $setting)) {
150 return $setting;
155 // The first 12 characters of an existing hash are its setting string.
156 $setting = substr($setting, 0, 12);
157 if ($setting[0] != '$' || $setting[2] != '$') {
160 $count_log2 = _password_get_count_log2($setting);
165 $salt = substr($setting, 4, 8);
178 $output = $setting . _password_base64_encode($hash, $len);
185 // Parse the log2 iteration count from a stored hash or setting string.
186 function _password_get_count_log2($setting) {
188 return strpos($itoa64, $setting[3]);