June 2018
Beginner
510 pages
13h 7m
English
The following is an example of a simple Python script that decrypts the string "CHXV" back to "ZEUS":
>>> chr_set = "ABCDEFGHIJKLMNOPQRSTUVWXYZ">>> key = 3>>> cipher_text = "CHXV">>> plain_text = "">>> for ch in cipher_text: j = chr_set.find(ch.upper()) plain_index = (j-key) % len(chr_set) plain_text += chr_set[plain_index]>>> print plain_textZEUS