def Trace(val, index, cipherText): forward = cipherText[index + 1:] plainText = chr(ord(cipherText[index]) ^ val) for c in forward: orig = un.unTwist8(val) next = rnd.getNext8(orig, index) val = rnd.getTwist(next) index += 1 plainText += chr((ord(c) ^ val)) back = cipherText[0:index] return plainText
def Trace(val, index, cipherText): forward = cipherText[index + 1 :] plainText = chr(ord(cipherText[index]) ^ val) for c in forward: orig = un.unTwist8(val) next = rnd.getNext8(orig, index) val = rnd.getTwist(next) index += 1 plainText += chr((ord(c) ^ val)) back = cipherText[0:index] return plainText