Skip to main content
Version: 0.0.1

SHA

Categories: Cryptography

SHA

Computes the SHA-1 hash value of a string.

Syntax

SHA(expr varchar) → varchar

  • expr: The string to hash.

Examples

{{< codeheader "SHA example" >}}

SELECT SHA('Dremio')
-- dda3f1ef53d1e82a4845ef5b2893b9d9c04bd3b1

Usage Notes

This function is an alias for SHA1.