From: Chris Porter Date: Sun, 22 Sep 2013 19:13:02 +0000 (+0100) Subject: CHANSERV: still using unburnt keystream due to needing website changes X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/3fe687839d600023e86244cd68125fe9ada46238 CHANSERV: still using unburnt keystream due to needing website changes --HG-- branch : chanserv-live --- diff --git a/chanserv/batcher/rc4.py b/chanserv/batcher/rc4.py index b926f7db..7fd8b468 100644 --- a/chanserv/batcher/rc4.py +++ b/chanserv/batcher/rc4.py @@ -1,5 +1,5 @@ class RC4: - def __init__(self, key, burn=4096): + def __init__(self, key, burn=0): s = range(256) for i in xrange(256): s[i] = i @@ -8,7 +8,7 @@ class RC4: j = (j + s[i] + ord(key[i % len(key)])) % 256 s[j], s[i] = s[i], s[j] self.__s = s - self.crypt("\x00" * burn) +# self.crypt("\x00" * burn) def crypt(self, data): ret = []