开发者

SQL Server HashBytes

开发者 https://www.devze.com 2023-02-09 03:42 出处:网络
Can you unhash a value that you have stored in the DB? So if I generate and store a value like this SELECT HashBytes(\'MD5\', \'HelloWorld\')

Can you unhash a value that you have stored in the DB?

So if I generate and store a value like this

SELECT HashBytes('MD5', 'HelloWorld')

Can I use a function to unhash it so that I can get the original value backout?

Thanks,

开发者_Python百科S


Unfortunately not. If you are trying to check if a password or pass phrase is correct, you would only be able to encrypt what you've received, and then compare the two results. If they differ, then obviously the wrong information has been passed in.


No. Cryptographic hashes are by definition one way.

0

精彩评论

暂无评论...
验证码 换一张
取 消