Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 447 Bytes

File metadata and controls

20 lines (14 loc) · 447 Bytes
description
Computes the 256-bit SHA-2 hash value of a string.

SHA256

Syntax

SHA256(expr varchar) → varchar

  • expression: The string to hash.

Examples

{% code title="SHA256 example" %}

SELECT SHA256('Spice')
-- ffae26c65c486a4d9143cbb1a6829166f17dab711910fdfc5787b1a249bd9921

{% endcode %}