Thread: new KeyGenMe
View Single Post
  #12  
Old 10-13-2013, 22:04
giv's Avatar
giv giv is offline
VIP
 
Join Date: Jan 2011
Location: Romania
Posts: 1,663
Rept. Given: 803
Rept. Rcvd 1,283 Times in 561 Posts
Thanks Given: 228
Thanks Rcvd at 567 Times in 241 Posts
giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299
Quote:
Originally Posted by chessgod101 View Post
giv, the problem is that the string is being encoded as unicode. In order to get the correct hash, you need to encode the string using ASCIIEncoding instead of UnicodeEncoding.
When the string is encoded as unicode, these are the bytes that get hashed:
Code:
67 00 69 00 76 00
When you hash it as an ASCII string, these bytes get hashed and yield the correct result:
Code:
67 69 76
I do as you point at but the result is the same.
Maybe L.C. is right.
I must change XP
Reply With Quote