public function hash(string $password)
    {
        $algorithm = $this->config->dget('algorithm', PASSWORD_DEFAULT);
        $options['cost'] = $this->config->dget('cost', 10);

        return password_hash($password, $algorithm, $options);
    }
public function hash(string $password)
    {
        $algorithm = $this->config->dget('algorithm', PASSWORD_DEFAULT);
        $options['cost'] = $this->config->dget('cost', 10);

        return password_hash($password, $algorithm, $options);
    }
public function hash ( string $ password ) { $ algorithm = $ this -> config -> dget ( 'algorithm' , PASSWORD_DEFAULT ) ; $ options [ 'cost' ] = $ this -> config -> dget ( 'cost' , 10 ) ; return password_hash ( $ password , $ algorithm , $ options ) ; }
Create a hash of the password
@param string $password The password to hash
@return string The hashed password
Create a hash of the password