work for any printable characters. An example of the program input
Project 1 is:
Write a script that inputs a line of plaintext and a distance value and outputs an encrypted text using a Caesar cipher. The script should work for any printable characters.
An example of the program input and output is shown below:
Enter a message: Hello world!
Enter the distance value: 4
Lipps${svph%
Project 2 is
Write a script that inputs a line of encrypted text and a distance value and outputs plaintext using a Caesar cipher. The script should work for any printable characters. An example of the program input and output is shown below: Enter the coded text: Lipps${svph%
Enter the distance value: 4
Hello world!
My question is
Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text.
An example of the program interface is shown below:
Enter the input file name: encrypted.txt
Enter the output file name: a
Enter the distance value: 3
the example program interface is attached in images.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images