def __init__(self, stream, key): self.__stream = stream self.__cipher = _Crypto_Cipher_ARC4_new(key) if key else lambda x: x
def __init__(self, stream, key): self.__stream = stream self.__cipher = _Crypto_Cipher_ARC4_new(key) if key else lambda x:x
def rc4crypt(data, key): return _Crypto_Cipher_ARC4_new(key).encrypt(data) if key else data