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
2009-12-14 17:42:44
as for any other hash I suppose, no?
SilentGhost
2009-12-14 17:43:15
Yeah — in fact, a uniform probability distribution of hash values is one of the defining characteristics of a good hash function.
daf
2009-12-14 18:22:54
+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
2009-12-14 17:42:58
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
2009-12-15 01:59:15