Vb.net Decrypt sha512 hash

半世苍凉 提交于 2019-12-01 10:57:09

问题


Heys guys,

I'm struggling about out to decrypt the hash how my sha512 encryption. I'm searching a way to finnaly decrypt it.

By the way this is how I do the encryption:

Dim uEncode As New UTF8Encoding()
        Dim bytClearString() As Byte = uEncode.GetBytes("to encrypt")
        Dim sha As New  _
        System.Security.Cryptography.SHA512Managed
        Dim WordEncrypt As String = ""
        Dim hash() As Byte = sha.ComputeHash(bytClearString)
        For Each b As Byte In hash
            WordEncrypt &= b.ToString("x2")
        Next

What i need now is to know how to decrypt it.


回答1:


SHA512 is not an encryption algorithm, it's a hashing algorithm. What this means is that the data that goes into it cannot be recovered from the generated hash.

I'm sorry but there is no way short of using a rainbow table style lookup to get the original data back. There's a great post on the difference here on SO.



来源:https://stackoverflow.com/questions/17489695/vb-net-decrypt-sha512-hash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!