Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started