how to encrypt """ File: decrypt.py Project 4.3 Decypts a file of encrypted text. and prints the result. The other input is the distance value. """ code = raw_input("Enter the coded text: ") distance...



how to encrypt

"""

File: decrypt.py

Project 4.3



Decypts a file of encrypted text. and prints

the result. The other input is the distance value.

"""



code = raw_input("Enter the coded text: ")

distance = input("Enter the distance value: ")

plainText = ''

for ch in code:

ordValue = ord(ch)

cipherValue = ordValue - distance

if cipherValue <>

cipherValue = ord('z') - (distance - \

(ordValue - ord('a')) - 1)

plainText += chr(cipherValue)

print plainText



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here