Parameter | Type |
---|---|
value_to_hash | any |
Returns: string
Example
query:
SELECT name, SHA1(name)
FROM employees
ORDER BY name
LIMIT 1
results:
name | sha1 |
---|---|
Anna Snelling | f5f354d184d527215ac3668f6973c8bac3c477a81 |
A function used to calculate the SHA-1 hash of a data value. The hash will be returned as a hex-encoded string.
Parameter | Type |
---|---|
value_to_hash | any |
query:
SELECT name, SHA1(name)
FROM employees
ORDER BY name
LIMIT 1
results:
name | sha1 |
---|---|
Anna Snelling | f5f354d184d527215ac3668f6973c8bac3c477a81 |