标签: hash sha256 netezza password-encryption
任何人都可以帮我一些sql查询,我可以在Netezza中将纯文本转换为SHA-256哈希..
提前致谢..
答案 0 :(得分:1)
docs表示这只是调用hash函数,第二个参数等于2.
hash
select hash('string', 2)
但我认为你喜欢十六进制格式,所以将它包装在rawtohex中。
rawtohex
select rawtohex(hash('string', 2))