Difference between revisions of "LlSHA1String"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|mode=pre-release
|func_id=343|func_sleep=0.0|func_energy=10.0
|func_id=343|func_sleep=0.0|func_energy=10.0
|func=llSHA1String|return_type=string|p1_type=string|p1_name=src
|func=llSHA1String|return_type=string|p1_type=string|p1_name=src

Revision as of 10:59, 25 December 2008

Summary

Function: string llSHA1String( string src );

Returns a string of 40 hex characters that is the "Wikipedia logo"SHA1 security hash of src.

• string src

Specification

LSL strings are stored in the UTF-8 format.

Examples

<lsl> llSay(0, llSHA1String("Hello, Avatar!")); // returns 2E73318E547AF1B28CC0C96F95DDC9B1EE906B8D </lsl>

Linux Example

$ echo -n 'Hello, Avatar!' | openssl sha1
2E73318E547AF1B28CC0C96F95DDC9B1EE906B8D

See Also

Functions

•  llMD5String

Articles

•  SHA1

Deep Notes

Prior to this, the only way to get the SHA1 hash was to use the LSL SHA1 port: SHA1

History

Search JIRA for related Issues

Signature

function string llSHA1String( string src );