SHA256

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Calculates the SHA-256 hash of data, returning the result as binary data.

  • <data>: The text or bytea data to hash.

Returns a bytea that contains the SHA-256 hash.

  • SHA-256 is cryptographically secure.
  • Use encode(sha256(<data>), 'hex') for human-readable hexadecimal output.

Get the SHA-256 hash of a string.

Returns \xba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad.