加密
-- 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
---