Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

HASH.SHA256

Daniel Gorman edited this page Mar 21, 2019 · 2 revisions

The HASH.SHA256 Function

Function Group: Hash

HASH.SHA256 returns the hash calculated from the given string using sha256 algorithm.

Syntax

HASH.SHA256(arg)

  • arg is a string

Uses

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

Clone this wiki locally