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.
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.