Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2013, 18:44
chessgod101's Avatar
chessgod101 chessgod101 is offline
Co-Administrator
 
Join Date: Jan 2011
Location: United States
Posts: 539
Rept. Given: 2,242
Rept. Rcvd 704 Times in 224 Posts
Thanks Given: 754
Thanks Rcvd at 1,021 Times in 191 Posts
chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899
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
__________________
"As the island of our knowledge grows, so does the shore of our ignorance." John Wheeler
Reply With Quote
The Following 2 Users Gave Reputation+1 to chessgod101 For This Useful Post:
LordCoder (09-10-2013)
  #2  
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
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ripping from v0!d keygenme 1 Zeocrack Source Code 4 10-10-2022 04:15
Keygenme (Easy?) dila Source Code 8 07-25-2015 20:43


All times are GMT +8. The time now is 21:26.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )