Skip to main content

Categories: Cryptography

SHA512

Returns the SHA-512 hash of the input as a 128-character hexadecimal string.

Syntax​

SHA512(expression any) → varchar​

  • expression: Value to hash. Accepts any type.

Examples

SHA512 example
SELECT SHA512('Dremio')
-- f011241f4a038756cbffccc934ab67215e0ca5760d84423af09307c0e6d9991b24963680db6102466176bcea4d609b82ed2e
Compute the SHA-512 hash of a string
SELECT SHA512('hello')
-- 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043