snowflake.snowpark.functions.sha2_binary¶
- snowflake.snowpark.functions.sha2_binary(msg: Union[snowflake.snowpark.column.Column, str], digest_size: Union[snowflake.snowpark.column.Column, str] = None) Column[source]¶
Returns a binary SHA-2 hash of the input message. The digest size determines the hash algorithm used.
- Parameters:
msg (ColumnOrName) – The input message to hash.
digest_size (ColumnOrName, optional) – The digest size in bits. Valid values are 224, 256, 384, and 512. Defaults to 256 if not specified.
- Returns:
A binary representation of the SHA-2 hash.
- Return type:
- Examples::