Melang

Logo

A script language of preemptive scheduling coroutine in single thread

View the Project on GitHub Water-Melon/Melang

Base64

mln_base64
@mln_base64(data, op);

Input:

Return value:

Error:

Example:

text = 'base64 test';
encoded = @mln_base64(text, 'encode');
@mln_print(encoded);
@mln_print(@mln_base64(encoded, 'decode'));

The output is:

YmFzZTY0IHRlc3Q=
base64 test