def rc4(key, data):
Initialize the state with the key
Example usage:
key = b'Hello World'
data = b'Hi its me im the problem its me'
encrypted_data = rc4(key, data)
decrypted_data = rc4(key, encrypted_data)
print(encrypted_data)
print(decrypted_data)