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;
            }
        }
    }
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;
            }
        }
    }
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 ; } } }
Create a generated password

@param $type
Create a generated password