string llStringToBase64(string str)
Converts a
string to the
Base 64 representation of the string.
Here is a simple example:
default
{
state_entry()
{
string test = llStringToBase64("Hello world!"); //Creates a new string called test and assigns it a function, here the script will change "Hello world!" into Base 64 text
llSay(0, (string)test); //This will make the script say the result in the local channel, result: "SGVsbG8gd29ybGQh"
}
}
Compare with
llBase64ToString.
NOTICE:
Base64 is not encryption. It is very easy to decode base 64 strings.
This article wasn't helpful for you? Maybe the
related article at the LSL Portal is able to bring enlightenment.
Functions /
Crypto /
Communications /
Strings