Unencrypt MD5

  • Thread starter Thread starter JZ
  • Start date Start date
J

JZ

Hi,

I found this code which I have been using, it nicely encodes a string.

How can I convert the hash data back to a string?

Dim hashAlg As System.Security.Cryptography.MD5 = New
System.Security.Cryptography.MD5CryptoServiceProvider()
Dim rawBytes() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(str)
Dim lhashData() As Byte = hashAlg.ComputeHash(rawBytes)
Dim ret As String = BitConverter.ToString(lhashData)

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top