Melang

Logo

A script language of preemptive scheduling coroutine in single thread

View the Project on GitHub Water-Melon/Melang

RC4

Import

rc = Import('rc');
rc4
rc.rc4(data, key);

Input:

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