Python代码:
'''
Created on 2011-6-21
@author: shanks
'''
def rc4(data, key):
'''
data: data that to be encrypted or decrypted.
key: key to encrypt or decrypt.
'''
#some parameters check here ...
#if the data is a string, convert to hex format.