ASCIIEncoding.GetString returns different values

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)
 

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

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top