SHA1_HEX

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functions

Returns a 40-character hex-encoded string containing the 160-bit SHA-1 message digest. These functions are synonymous.

Syntax

SHA1(<msg>)

SHA1_HEX(<msg>)

Parameters

NameRequiredDescription
msgrequiredA string expression, the message to be hashed.

Returns

The data type of the returned value is VARCHAR.

Usage notes