()
| 50 | |
| 51 | |
| 52 | def decode(): |
| 53 | decoded_cipher = "" |
| 54 | cipher = input("\n[>] Enter your cipher text: ") |
| 55 | key = get_int() |
| 56 | |
| 57 | for character in cipher: |
| 58 | ascii = ord(character) - key |
| 59 | decoded_cipher += chr(ascii) |
| 60 | |
| 61 | print(decoded_cipher) |
| 62 | |
| 63 | |
| 64 | if __name__ == "__main__": |