Difference between revisions of "LlMD5String"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
|func_desc | |func_desc | ||
|return_text=of 32 hex characters that is the {{Wikipedia|MD5|MD5}} checksum of '''src''' with a {{Wikipedia|Salt_%28cryptography%29|salt}} of ":"+'''nonce'''. | |return_text=of 32 hex characters that is the {{Wikipedia|MD5|MD5}} checksum of '''src''' with a {{Wikipedia|Salt_%28cryptography%29|salt}} of ":"+'''nonce'''. | ||
|spec='''nonce''' is converted then appended to '''src''' after a colon ( | |spec='''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. | ||
|caveats | |caveats | ||
|constants | |constants |
Revision as of 12:46, 22 February 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: string llMD5String( string src, integer nonce );258 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a string of 32 hex characters that is the MD5 checksum of src with a salt of ":"+nonce.
• string | src | |||
• integer | nonce |
Specification
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.
Caveats
Examples
llSay(0, llMD5String("Hello, Avatar!", 0)); // returns 112abd47ceaae1c05a826828650434a6
Linux Example
$ echo -n 'Hello, Avatar!:0' | openssl md5 112abd47ceaae1c05a826828650434a6