# caesar2.py - Decrypt the Caesar cipher. Assume the key is 3. # This program is analogous to original caesar.py. inFile = open("cipher.txt", "r") outFile = open("plain2.txt", "w") text = inFile.read() # Loop to modify each character one by one. for i in range(0, len(text)): c = chr(bytearray(text)[i]-3) outFile.write(c) # Finally, tell Python we are done with the files. inFile.close() outFile.close()