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:
Sei Lisa 2022-10-14 18:39:04 +02:00
parent 8966b9de97
commit 9c281dec64
5 changed files with 21 additions and 1 deletions

View file

@ -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):