hive outline
链接
hive mask
select mask("abc123DEF");
select mask("DEFabc123",'!','@','#');
hive mask_first_n
select mask_first_n("abc123DEF",3);
hive mask_last_n
select mask_last_n("abc123DEF",3);
hive mask_show_first_n
select mask_show_first_n("abc123DEF",3);
hive mask_show_last_n
select mask_show_last_n("abc123DEF",3);
hive mask_hash
select mask_hash("abc123DEF");
取哈希值函数:hash
select hash("allen");
hiveSHA-1加密: sha1(string/binary)
select sha1("allen");
hive SHA-2家族算法加密:sha2(string/binary, int) (SHA-224, SHA-256, SHA-384, SHA-512)
select sha2("allen",224);
select sha2("allen",512);
hive crc32加密:
select crc32("allen");
hive MD5加密: md5(string/binary)
select md5("allen");
|