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

LSL Wiki : llIntegerToBase64

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl801.us.archive.org
string llIntegerToBase64(integer number)

Encodes number as an 8-character Base64 string.

Use llBase64ToInteger to decode such a string.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Base64
Comments [Hide comments/form]
What is the maximum length of the output of this function? (how long is the string representation of the largest integer?)
-- ChristopherOmega (2006-04-23 13:53:48)
they all get 8 characters.
-- BlindWanderer (2006-04-23 18:12:59)
Since each Base64 symbol represents 6 bits of data, a 32-bit integer will encode to 5 and 1/3rd Base64 symbols. The 6th symbol is zero-padded on the right towards the LSB, and the last two characters are always the Base64 pad symbol "=". Would be nice if we could have a llIntegerListToBase64() function for crypto purposes.
-- TalarusLuan (2006-04-29 23:49:46)
Attach a comment to this page: