Difference between revisions of "LlSHA1String"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 11: Line 11:
|examples=
|examples=
<lsl>
<lsl>
llSay(0, llSHA1String("Hello, Avatar!")); // returns *fixme*
llSay(0, llSHA1String("Hello, Avatar!")); // returns 2E73318E547AF1B28CC0C96F95DDC9B1EE906B8D
</lsl>
</lsl>


Line 17: Line 17:
<pre>
<pre>
$ echo -n 'Hello, Avatar!' | openssl sha1
$ echo -n 'Hello, Avatar!' | openssl sha1
*fixme*
2E73318E547AF1B28CC0C96F95DDC9B1EE906B8D
</pre>
</pre>
|helpers
|helpers
Line 24: Line 24:
|also_tests
|also_tests
|also_events
|also_events
|also_articles
|also_articles=
{{LSL DefineRow||[[SHA1]]}}
|notes
|notes
|deepnotes=
Prior to this, the only way to get the SHA1 hash was to use the LSL SHA1 port: [[SHA1]]
|history=
|history=
*{{SVN|1291|rev=98903|trunk=*|anchor=file13|ver=1.24.5.97417|ser=1.24.9.98650}} Initial introduction.
*{{SVN|1291|rev=98903|trunk=*|anchor=file13|ver=1.24.5.97417|ser=1.24.9.98650}} Initial introduction.

Revision as of 17:18, 11 October 2008

Emblem-important-red.png Pre-release Documentation Warning!

This function is not available yet. This documentation was written prior to its final release so it may not match the final implementation.

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 );