sha1
Returns a VARCHAR with the SHA-1 hash of the value.
Try an expression
In Formula, enter the expression and set Output type to VARCHAR.
Expression
sha1('🦆')Result
'949bf843dc338be348fb9525d1eb535d31241d76'To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
sha1(value)- value
- Text
- blob
- Binary data
Supported signatures (2)
sha1(blob: BLOB) → VARCHAR
sha1(value: VARCHAR) → VARCHARThe result type can depend on the input types. See DuckDB for the full argument rules.
Things to know
If the first argument is missing, the result is NULL.
Function metadata from DuckDB, used under the MIT license.