some small fixes

This commit is contained in:
Mari Wahl 2014-10-07 20:37:18 -04:00
parent a5a6601a45
commit 0085af90dd
5 changed files with 110 additions and 11 deletions

View file

@ -0,0 +1,17 @@
#!/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 = ""