public function setPassword($password, $algorithm = PasswordFile::ALG_MD5, array $options = null)
    {
        $this->hash = Crypt::hash($password, $algorithm, $options);
    }
public function setPassword($password, $algorithm = PasswordFile::ALG_MD5, array $options = null)
    {
        $this->hash = Crypt::hash($password, $algorithm, $options);
    }
public function setPassword ( $ password , $ algorithm = PasswordFile :: ALG_MD5 , array $ options = null ) { $ this -> hash = Crypt :: hash ( $ password , $ algorithm , $ options ) ; }
Sets the password for the user

@param string $password
@param string $algorithm
@param array $options [optional]
Sets the password for the user