A script language of time-sharing scheduling coroutine in single thread
rc = Import('rc');
rc.rc4(data, key);
Input:
data
- a string value which is a text or ciphertext.key
- a string value.Return value:
Error:
Example:
rc = Import('rc');
sys = Import('sys');
cipher = rc.rc4('This is a rc4 test', 'a key');
sys.print(cipher);
sys.print(rc.rc4(cipher, 'a key'));
The output is:
oO?L?RQ??????(?
This is a rc4 test