CakeDC\Users\Model\Entity\User::hashPassword PHP Method

hashPassword() public method

Hash a password using the configured password hasher, use DefaultPasswordHasher if no one was configured
public hashPassword ( string $password ) : mixed
$password string password to be hashed
return mixed
    public function hashPassword($password)
    {
        $PasswordHasher = $this->getPasswordHasher();
        return $PasswordHasher->hash($password);
    }