A script language of preemptive scheduling coroutine in single thread
This is a library function for AES encryption and decryption.
@mln_aes(data, key, bits, op);
Input:
bits – an integer value of the key bit length. Key’s’ bit-length must be equal to or greater than bits. It supports these value: 128, 192, 256.
Return value:
Error:
Example:
text = 'This is an aes test, note length';
@mln_print('text length: '+@mln_strlen(text));
key = 'this is a secret';
cipher = @mln_aes(text, key, 128, 'encode');
@mln_print(cipher);
text = @mln_aes(cipher, key, 128, 'decode');
@mln_print(text);
The output is:
text length: 32
l???<??J? ?H?D???j?8?!??B#?8
This is an aes test, note length