This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from base64 import b64decode, b64encode | |
import hashlib, argparse | |
def rc4mi(data, key): | |
S, j, out = bytearray(range(256)), 0, bytearray() | |
for i in range(256): | |
j = (j + key[i % len(key)] + S[i]) % 256 | |
S[i], S[j] = S[j], S[i] |