Skip to content
lsl.devlsl.devLSL Dev

LlBase64ToString

Looking for the current API? Open the llBase64ToString reference →

Return value notes

Returns a string that is the Base64 str decoded into a conventional string, interpreting the Base64-encoded bytes as UTF-8 character sequence.

Caveats

  • If the conversion creates any unprintable characters, they are converted to spaces.
  • Converts invalid characters into question marks ('?').

Examples

default {
    state_entry()
    {
        string test = llBase64ToString("U2VjcmV0Ok9wZW4=");
        llSay(0,test );
    }
}
This can be used in Basic Authentication, such as this login:
GET / HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)
Host: www.example.com
Authorization: Basic U2VjcmV0Ok9wZW4= 
llBase64ToString("U2VjcmV0Ok9wZW4="); //will return the string "Secret:Open"

See also: functions

See also: articles

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from LlBase64ToString, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.