src/Leevel/Auth/Hash.php
public function password(string $password, array $option = []): string
    {
        $algo = $option[self::ALGO] ?? PASSWORD_BCRYPT;

        return password_hash($password, (int) $algo, $option);
    }
public function password(string $password, array $option = []): string
    {
        $algo = $option[self::ALGO] ?? PASSWORD_BCRYPT;

        return password_hash($password, (int) $algo, $option);
    }
生成密码.

@param string $password
@param array  $option

@return string