Question: Python 3: Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text. An example of the program interface is
Python 3: 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


Instructions decrypt. encrypt,py : + 1 #Modify the progran bolaw Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text 3 File: decrypt.py An example of the program I nterface Is shown below: Project 1.2 Entor tha input fle nano oncrypted.txt Enter the output file nane: Enter the distance value:3 6 Decypts an input string characters and prints 7 the result. The other input is the distance value Grading 1B # 1he ASCII values range fram & through 127 When you have completed your program, click the Submit button to record your score. 12 code mputC Enter the coded text:) 13 distance-int(nput("Enter the distance value:")) plainText 15f0chin code 16 or Value ord(ch) 17 CLpher VaLueordvalue distance ctpherVale 12 (distance (- ordvalue) 21 planTextchr(CLpherValue) 22 prtnt(platnText)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
