This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
HASH.SHA256
Daniel Gorman edited this page Mar 21, 2019
·
2 revisions
HASH.SHA256
returns the hash calculated from the given string using sha256 algorithm.
HASH.SHA256(arg)
-
arg
is a string
With given context:
{
"data": {
"foo": 1,
"bar": ["x", "y"]
}
}
If we need to calculate the digest for the above context, we can use JSON.ENCODE
to transform the context into a string and pass that string to HASH.SHA256
to calculate the digest:
HASH.SHA256(JSON.ENCODE(_))
This will return 5ebb5928da91aadae28a855d54d66a74c1ab6fb6d6ebf4f4689f2b310e62a637