2014-10-07 20:37:18 -04:00

18 lines
373 B
Python

#!/usr/bin/python
import sys
CIPHER = "OMQEMDUEQMEK"
LETTERS = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
CIPHER = ""
shift = 1
while i < len(LETTERS):
for c in CIPHER:
if c in LETTERS:
CIPHER += LETTERS[(LETTERS.index(c)+shift)%(len(LETTERS))]
print("Shift used: " + str(shift))
print("Ciphertext: " + CIPHER)
print("CIPHER: " + CIPHER)
shift = shift + 1
CIPHER = ""