tags:

views:

167

answers:

3

Is there any input that SHA-1 will compute to a hex value of fourty-zeros, i.e. "0000000000000000000000000000000000000000"?

+8  A: 

Yes, it's just incredibly unlikely. I.e. one in 2^160, or 0.00000000000000000000000000000000000000000000006842277657836021%.

daf
as for any other hash I suppose, no?
SilentGhost
Yeah — in fact, a uniform probability distribution of hash values is one of the defining characteristics of a good hash function.
daf
+2  A: 

Yes, there will be some inputs that compute to that hash.

moonshadow
+1  A: 

Without any knowledge of SHA-1 internals, I don't see why any particular value should be impossible (unless explicitly stated in the description of the algorithm). An all-zero value is no more or less probable than any other specific value.

DevSolar
Yes I guess that is a better way to ask the same question: is there anything in the SHA-1 algorithm which explicitly excludes this value.
McKAMEY