@Override
    public void run() {
        int choice;

        do {
            System.out.println("\nCryptoby - Crypt your Stuff");
            System.out.println("---------------------------\n");
            System.out.println("1 - Crypt Files");
            System.out.println("2 - Crypt Text");
            System.out.println("3 - Generate Key");
            System.out.println("4 - Primetest");
            System.out.println("5 - Quit");
            System.out.print("Enter Number: ");
            while (!scanner.hasNextInt()) {
                System.out.print("That's not a number! Enter 1,2,3,4 or 5: ");
                scanner.next();
            }
            choice = scanner.nextInt();
        } while (choice < 1 || choice > 5);

        switch (choice) {
            case 1:
                this.menuFileCrypt();
                break;
            case 2:
                this.menuTextCrypt();
                break;
            case 3:
                this.menuGenKey();
                break;
            case 4:
                this.menuPrimeTest();
                break;
            case 5:
                this.core.getClient().exitApp();
                break;
            default:
                this.run();
        }
    }