Question: Modify the scripts of Programming Exercises 1 and Programming Exercise 2 to encrypt and decrypt entire files of text. ( LO: 4 . 1 ,
Modify the scripts of Programming Exercises and Programming Exercise to encrypt and decrypt entire files of text. LO: So this is what I have for the encrypt portion for Exercise encrypt.py
# Put your code here
textCode inputPlease enter the coded text:
distance intinputPlease enter the value of distance:
plainText
for char in textCode:
ordValue ordchar
cipherValue ordValue distance
if cipherValue :
cipherValue distance ordValue
plainText chrcipherValue
printplainText This is what I have for decryption for Exercise decrypt.py
# Write your program here
# Request the inputs
codedText inputEnter the coded text:
distanceValue intinputEnter the distance value:
# Calculate the decryption
plainText
for ch in codedText:
ordValue ordch
cipherValue ordValue distanceValue
if cipherValue :
cipherValue distance ordValue
plainText chrcipherValue
printplainText Can you please show me how to Modify encrypt and decrypt scripts to encrypt and decrypt entire files of text by using what I have?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
