Project 2 - Cipher implementation in Python

mayue0116
caesar-decryption.py

#A python program to illustrate Caesar Cipher decryption Technique def decrypt(text,s): result = "" # traverse text for i in range(len(text)): char = text[i] # Decrypt characters # write the green highlighted logic below from the Assignment PDF # to perform the decryption result += chr('''Replace the green highlighted line here''') return result #check the above function cipher = "WKLVLVDFODVVRQVHFXULWB" s = 3 print("Encrypted Message:" + cipher) print("Key: " + str(s) ) print("Original Message: " + decrypt(cipher,s) )