问题
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