OsSHA256

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Add osSHA256)
 
m (Typo)
 
Line 8: Line 8:
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
 
//
 
//
// osSHA256 Script Exemple
+
// osSHA256 Script Example
 
// Author: djphil
 
// Author: djphil
 
//
 
//

Latest revision as of 05:26, 1 January 2021

string osSHA256(string input)
Generate a hash value (string input). Returns a string containing the calculated string input as lowercase.
Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
//
// osSHA256 Script Example
// Author: djphil
//
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osSHA256 usage.");
    }
 
    touch_start(integer number)
    {
        string input = "OpenSimulator";
        llSay(PUBLIC_CHANNEL, "The sha256 value of input \"" + input + "\" is:\n" + osSHA256(input));
    }
}
Notes
This function was added in 0.9.2-Dev


Personal tools
General
About This Wiki