Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi All,

I have been searching for a SHA1 hash where the first 4 bytes equal g000.

I have been searching for 48 hours and tried every 7 digit combination

I am just wondering if there is a match for this set of chars, surely there must be at some point?

Thanks George
Posted

1 solution

Yes, there will be, lots, but given that the shortest SHA is 160 bits, the odds on you finding one by randomly putting just 7 digits into the hashing algorithm are too small to list. How big is 2^160?

That is kind of the idea of SHA: That you can't predict the value from the start data, and you can't work out the data from the value... :laugh:
 
Share this answer
 
Comments
grwithey 7-Mar-11 10:41am    
Ha yes true, i have already tried every possible combination from 0 up to "zzzzzzz" which has taken a few days to get there, which is several billion combinations if i understand correctly.

Yes 2 ^ 160 would be pretty huge. I will have to continue to let it run and see what happens as i found a match for the range from 0000 to f000
OriginalGriff 7-Mar-11 10:48am    
1 match in only several days? You were lucky! :laugh:
OriginalGriff 7-Mar-11 10:53am    
Oh, and I don't want to worry you unduly, but which version of SHA are you checking? Because I normally use SHA512 (which predicatably has 512 bits) and they are due to release the SHA1024 specification early next year...
grwithey 8-Mar-11 2:35am    
I think it is 160 bit value that is produced
Sergey Alexandrovich Kryukov 7-Mar-11 12:23pm    
I wonder, are your experimenting blind-folded or perhaps you estimated the probability or math.expectation of your results. And why that heroic effort? :-)
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900