Lines Matching refs:compute
384 * salts $compute is used.
400 * @param int $compute The iteration count for new passwords
404 protected function stretched_hash($algo, $clear, $salt = null, $magic = 'P', $compute = 8)
409 $salt = $itoa64[$compute] . $salt; // prefix iteration count
465 * @param int $compute The iteration count for new passwords
469 public function hash_pmd5($clear, $salt = null, $magic = 'P', $compute = 8)
471 return $this->stretched_hash('md5', $clear, $salt, $magic, $compute);
487 * @param int $compute The iteration count for new passwords (defautl is drupal 7's)
491 public function hash_drupal_sha512($clear, $salt = null, $magic = 'S', $compute = 15)
493 return substr($this->stretched_hash('sha512', $clear, $salt, $magic, $compute), 0, 55);
502 * @param int $compute
507 public function hash_hmd5($clear, $salt = null, $magic = 'H', $compute = 8)
509 return $this->hash_pmd5($clear, $salt, $magic, $compute);
665 * through the $compute variable.
669 * @param int $compute The iteration count (between 4 and 31)
673 public function hash_bcrypt($clear, $salt = null, $compute = 10)
680 if ($compute < 4 || $compute > 31) $compute = 8;
681 $salt = '$2y$' . str_pad($compute, 2, '0', STR_PAD_LEFT) . '$' .