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

        do {
            System.out.println("\n");
            System.out.println("RSA File 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:
                rsaEncGenKeysFile(console);
                break;
            case 2:
                rsaEncrypterFile(console);
                break;
            case 3:
                rsaDecrypterFile(console);
                break;
            case 4:
                console.menuFileAsym();
                break;
            default:
                rsaCrypterFile(console);
        }
    }