Difference between revisions of "LlBase64ToString"

From Second Life Wiki
Jump to navigation Jump to search
m (Fix for alphabetical order in Functions list)
Line 9: Line 9:
*Converts invalid characters into question marks ('?').
*Converts invalid characters into question marks ('?').
|spec
|spec
|examples
|examples=<pre>
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"
 
</pre>
|helpers
|helpers
|related
|related

Revision as of 23:44, 7 June 2007

Summary

Function: string llBase64ToString( string str );
0.0 Forced Delay
10.0 Energy

Returns a string that is the Base64 str decoded into a conventional string.

• string str Base64 string

Caveats

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

Examples

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

•  llStringToBase64
•  llBase64ToInteger

Articles

•  Base64

Deep Notes

Signature

function string llBase64ToString( string str );