Skip to content

Instantly share code, notes, and snippets.

# rc4 encryption
# modified from source: https://github.com/bozhu/RC4-Python/blob/master/rc4.py
import sys
def crypt(key, data):
S = list(range(256))
j = 0