J
jdp
I'm converting an asp.net 1.1 app to 2.0 and am having difficulty
determining why ASCIIEncoding.GetString returns a different value in
..NET 2.0 than 1.1. The code is simple but I can't locate the problem.
If someone could point out my oversight, I'd greatly appreciate it.
Thanks in advance!
Dim md5Hasher As New MD5CryptoServiceProvider
Dim encoder As New ASCIIEncoding
Dim strHashedBytes As Byte() =
md5Hasher.ComputeHash(encoder.GetBytes(SOMESTRING))
Return encoder.GetString(strHashedBytes)
determining why ASCIIEncoding.GetString returns a different value in
..NET 2.0 than 1.1. The code is simple but I can't locate the problem.
If someone could point out my oversight, I'd greatly appreciate it.
Thanks in advance!
Dim md5Hasher As New MD5CryptoServiceProvider
Dim encoder As New ASCIIEncoding
Dim strHashedBytes As Byte() =
md5Hasher.ComputeHash(encoder.GetBytes(SOMESTRING))
Return encoder.GetString(strHashedBytes)