title: “CRYPT::SHA256” version: “1g” date: “2024-03-28” author: “laplante@plcb.ca”
sha256 Returns the hex value of the SHA-256 hash of the given string.
crypt::sha256 or sha256(string[, string…, error: variable])
This function returns the hex value of the SHA-256 hash of the given string.
A cryptographic hash, also often referred to as a “digest”, “fingerprint” or “signature”, is an almost perfectly unique string
of characters that is generated from a separate piece of input text.
SHA-256 generates a 256-bit (32-byte) signature.
res={{
sha256("test-004"); "\n";
sha256("test-004", "test-001"); "\n";
}}.
returns
res=eb1e6a1585a7deaf4231c996453ed9ba2e62f5dd94c0220512093b575690ba5e
["eb1e6a1585a7deaf4231c996453ed9ba2e62f5dd94c0220512093b575690ba5e","b3117469a5faaa9661af2ef23951d98b56d373505dfbcc8ae4fe7fc9c1d3aaef"]
.
laplante@plcb.ca