mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
New function, llSHA256String
Implement it in lslbasefuncs.py, and add tests. Also add more test vectors for llMD5String and llSHA1String.
This commit is contained in:
parent
8966b9de97
commit
9c281dec64
5 changed files with 21 additions and 1 deletions
|
@ -1916,6 +1916,10 @@ def llSHA1String(s):
|
|||
s = fs(s)
|
||||
return str2u(hashlib.sha1(s.encode('utf8')).hexdigest(), 'utf8')
|
||||
|
||||
def llSHA256String(s):
|
||||
s = fs(s)
|
||||
return str2u(hashlib.sha256(s.encode('utf8')).hexdigest(), 'utf8')
|
||||
|
||||
def llSin(f):
|
||||
f = ff(f)
|
||||
if math.isinf(f):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue