Lines Matching defs:compute
387 * salts $compute is used.
403 * @param int $compute The iteration count for new passwords
407 protected function stretched_hash($algo, $clear, $salt = null, $magic = 'P', $compute = 8)
412 $salt = $itoa64[$compute] . $salt; // prefix iteration count
468 * @param int $compute The iteration count for new passwords
472 public function hash_pmd5($clear, $salt = null, $magic = 'P', $compute = 8)
474 return $this->stretched_hash('md5', $clear, $salt, $magic, $compute);
490 * @param int $compute The iteration count for new passwords (defautl is drupal 7's)
494 public function hash_drupal_sha512($clear, $salt = null, $magic = 'S', $compute = 15)
496 return substr($this->stretched_hash('sha512', $clear, $salt, $magic, $compute), 0, 55);
505 * @param int $compute
510 public function hash_hmd5($clear, $salt = null, $magic = 'H', $compute = 8)
512 return $this->hash_pmd5($clear, $salt, $magic, $compute);
668 * through the $compute variable.
672 * @param int $compute The iteration count (between 4 and 31)
676 public function hash_bcrypt($clear, $salt = null, $compute = 10)
683 if ($compute < 4 || $compute > 31) $compute = 8;
684 $salt = '$2y$' . str_pad($compute, 2, '0', STR_PAD_LEFT) . '$' .