def __init__(self, key):
        RC4.__init__(self, key, "python")
        keyBytes = stringToBytes(key)
        S = [i for i in range(256)]
        j = 0
        for i in range(256):
            j = (j + S[i] + keyBytes[i % len(keyBytes)]) % 256
            S[i], S[j] = S[j], S[i]

        self.S = S
        self.i = 0
        self.j = 0
dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/tlslite/utils/Python_RC4.py/Python_RC4.__init__/original