Question: Modify the following program so that the user can specify an encryption key other than 3 with a - k option. For example: java CaeserCipher

Modify the following program so that the user can specify an encryption key other than 3 with a -k option. For example:
java CaeserCipher -k15 input.txt output.txt
\table[[,infile2.txt,infile3.txt]]
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
??****
This program encrypts a file using the Caesar cipher.
*/
public class CaesarCipher
{
public static void main(String [] args) throws FileNotFoundException
{
String my_args = new String[3];
Scanner console = new Scanner(System. in);
my_args [0]= console. next ();
 Modify the following program so that the user can specify an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!