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