加密
-- sql
select base64(cast('abcd' as binary))
-- result
hive> select base64(cast('abcd' as binary));
OK
YWJjZA==
---
解密
-- sql
select unbase64('YWJjZA==')
-- result
hive> select unbase64('YWJjZA==');
OK
abcd
---
-- sql
select base64(cast('abcd' as binary))
-- result
hive> select base64(cast('abcd' as binary));
OK
YWJjZA==
---
-- sql
select unbase64('YWJjZA==')
-- result
hive> select unbase64('YWJjZA==');
OK
abcd
---
本文标题:hive base64 加密解密函数
本文链接:https://www.haomeiwen.com/subject/xmuwfhtx.html
网友评论