This shit doesn't work

master
E. Almqvist 5 years ago
parent 54111eec5b
commit 4f276400d7
  1. 5
      caesar.py
  2. BIN
      lib/__pycache__/vars.cpython-38.pyc

@ -26,9 +26,8 @@ for char in txt_list: # loop through all of the chars
print("Decrypting char-index: " + str(charindex) + " (" + char + ")") print("Decrypting char-index: " + str(charindex) + " (" + char + ")")
index = index + in_key # shift the alphabet index = index + in_key # shift the alphabet
while( index >= alen ): #cycle through the alphabet while( index > alen - 1 ): #cycle through the alphabet
diff = (index + in_key) - (alen - 1) index = (index + in_key) - (alen - 1)
index = 0 + diff # a bit spaghetti but who doesn't like spaghetti
decryp_list[charindex] = alphabet[in_alphabet][index] decryp_list[charindex] = alphabet[in_alphabet][index]

Loading…
Cancel
Save