master
E. Almqvist 5 years ago
parent 3d2e8fc358
commit 5bd6acd065
  1. 2
      caesar.py

@ -28,7 +28,7 @@ for char in txt_list: # loop through all of the chars
index = index + in_key # shift the alphabet
while( index > alen - 1 ): #cycle through the alphabet
print("Alphabet cycle")
index = (index + in_key) - (alen - 1)
index = index - (alen - 1)
decryp_list[charindex] = alphabet[in_alphabet][index]

Loading…
Cancel
Save