Difference between revisions of "LlMD5String"

From Second Life Wiki
Jump to: navigation, search
(adding "string" and "encryption" categories, as requested on the related talkpage)
Line 29: Line 29:

Revision as of 14:04, 22 December 2008


Function: string llMD5String( string src, integer nonce );

Returns a string of 32 hex characters that is the MD5 checksum of src with a salt of ":"+nonce.

• string src
• integer nonce


nonce is converted then appended to src after a colon (src+":"+(string)nonce). This is important to know if you are calculating a hash in another language and wish to compare with one calculated in LSL.

LSL strings are stored in the UTF-8 format.


<lsl> llSay(0, llMD5String("Hello, Avatar!", 0)); // returns 112abd47ceaae1c05a826828650434a6 </lsl>

Linux Example

$ echo -n 'Hello, Avatar!:0' | openssl md5

See Also


•  llSHA1String

Deep Notes

Search JIRA for related Issues


function string llMD5String( string src, integer nonce );