CRC32(<expr> string|binary)
SPARKSQL and PRESTObigint> select crc32('tencent');820633257
MD5(<expr string|binary)
> select md5('tencent');3da576879001c77b442b9f8ef95c09d6
HASH(<expr1> any[, <expr2> any, ...])
SPARKSQL and PRESTO are inconsistent, so the results may differ.integer> SELECT hash('tencent', array(123), 2);-412995102
XXHASH64(<expr1> any[, <expr2> any, ...])
SPARKSQL and PRESTO are inconsistent, so the results may differ.> SELECT xxhash64('tencent', array(123), 2);-1900074178543885261
SHA(<expr> string|binary)
string> select sha('tencent');f94b2c96e2f127726ef4bcec6bc779f0f2e7888f
SHA1(<expr> string|binary)
expr as a hexadecimal string.string> select sha1('tencent');f94b2c96e2f127726ef4bcec6bc779f0f2e7888f
SHA2(expr string|binary, bitLength int)
expr for the SHA-2 family as a hexadecimal string. SHA-224, SHA-256, SHA-384, and SHA-512 are supported. A bit length of 0 equals to 256.string> select sha2('tencent', 256);9c8ae69b84f21a2e46df9edf0063a697afec050188ff2884ddc8ab32b5e58c43
AES_ENCRYPT(<expr> string|binary, <key> string|binary)
expr using the AES algorithm.binary> SELECT hex(aes_encrypt('tencent', '0000111122223333'));B99B99CE3359A736DBB9811ED8815C01
AES_DECRYPT(<expr> string|binary, <key> string|binary)
PRESTOexpr using the AES algorithm.binary> SELECT aes_decrypt(unhex('B99B99CE3359A736DBB9811ED8815C01'), '0000111122223333');tencent
Feedback