algorithm = $algorithm; } /** * @return string */ public function getAlgorithm() { return $this->algorithm; } public function encrypt($password, $salt = null, $member = null) { return hash($this->algorithm, $password . $salt); } }