public static void rsaCrypterText(CryptobyConsole console) {
        scanner = new Scanner(System.in);

        do {
            System.out.println("\n");
            System.out.println("RSA Text Cryption");
            System.out.println("-----------------\n");
            System.out.println("1 - Encryption and generate Keys");
            System.out.println("2 - Encryption with own Key");
            System.out.println("3 - Decryption");
            System.out.println("4 - Back");
            System.out.print("Enter Number: ");
            while (!scanner.hasNextInt()) {
                System.out.print("That's not a number! Enter 1,2,3 or 4: ");
                scanner.next();
            }
            choice = scanner.nextInt();
        } while (choice < 1 || choice > 4);

        switch (choice) {
            case 1:
                rsaEncGenKeysText(console);
                break;
            case 2:
                rsaEncrypterText(console);
                break;
            case 3:
                rsaDecrypterText(console);
                break;
            case 4:
                console.menuTextAsym();
                break;
            default:
                rsaCrypterText(console);
        }
    }