llMD5String
string llMD5String(string src,// Source string to hash.integer nonce// Nonce string used as a salt.
);- Returns
string- Energy
- 10
Returns a string of 32 hex characters representing the MD5 checksum of src salted with nonce (formatted as ':' + nonce).
Returns a string of 32 hex characters that is the MD5 checksum of src with a salt of ":"+nonce.
string result = llMD5String("", 0);Specification
Section titled “Specification”nonce is casted to string, then appended to src after a colon (src + ":" + nonce). This is important to know if you are calculating a hash in another language and wish to compare with one calculated in LSL. It could be written as MD5Hash(src + ":" + nonce)
The character encoding used by llMD5String is the UTF-8 format.
Examples
Section titled “Examples”Example 1
llSay(0, llMD5String("Hello, Avatar!", 0)); // returns 112abd47ceaae1c05a826828650434a6Example 2
Linux Example
Section titled “Linux Example”$ echo -n 'Hello, Avatar!:0' | openssl md5112abd47ceaae1c05a826828650434a6See also
Section titled “See also”Functions
Section titled “Functions”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.