Fixed python to not use a hard coded K char, and to actually use the key array

This commit is contained in:
KyleBanks 2013-10-06 16:03:27 -04:00
parent 8e32db167b
commit 5fe7d2481d

View File

@ -11,7 +11,7 @@ def encryptDecrypt(input):
output = []
for i in range(len(input)):
xor_num = ord(input[i]) ^ ord('K')
xor_num = ord(input[i]) ^ ord(key[i % len(key)])
output.append(chr(xor_num))
return ''.join(output)