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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user