Melang

Logo

A script language of preemptive scheduling coroutine in single thread

View the Project on GitHub Water-Melon/Melang

AES

This is a library function for AES encryption and decryption.

mln_aes

@mln_aes(data, key, bits, op);

Input:

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