BigQuery SHA256 function

If you're using Standard SQL in BigQuery then you could use:

\n\n
SELECT TO_HEX(SHA256("def@gmail.com")) as sha256;\n
\n\n

results:

\n\n
| sha256     |\n| c392e50ebeca7bea4405e9c545023451ac56620031f81263f681269bde14218b |\n

Asran

posted on

Enjoy great content like this and a lot more !

Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds