llBase64ToString
string llBase64ToString(string Text)Converts a Base64 string to a conventional string.
If the conversion creates any unprintable characters, they are converted to question marks.
Parameters
-
Text(string)
Basic example:
default { state_entry() { string test = llBase64ToString("U2VjcmV0Ok9wZW4="); llSay(0, test); }}Decoding a Base64 string:
llBase64ToString("U2VjcmV0Ok9wZW4="); //will return the string "Secret:Open"Basic Authentication
Section titled “Basic Authentication”This function can be used in Basic Access Authentication headers:
GET / HTTP/1.1User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)Host: www.example.comAuthorization: Basic U2VjcmV0Ok9wZW4=Caveats
Section titled “Caveats”- If the conversion creates any unprintable characters, they are converted to spaces.
- Converts invalid characters into question marks (?).
See Also
Section titled “See Also”- [llStringToBase64]
- [llBase64ToInteger]
- [llXorBase64] - Article also discusses xor based Cryptography