public function makeGenerated($type)
    {
        while($this->password == null) {
            $password = ($type == 'wordbased') ? Passworder::createWordBasedPassword() : Passworder::createRandomPassword();

            $this->info('Password: ' . $password);
            $this->info('Nato version: ' . $password->toNato());
            $passwordOk = $this->ask('Is this password ok? [y/n]');

            if (strtolower($passwordOk) == 'y') {
                $this->password = $password;
            }
        }
    }