Don't click here unless you want to be banned.

LSL Wiki : llStringToBase64

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl836.us.archive.org
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
There are 7 comments on this page. [Display comments/form]