Can a SHA-1 hash be all-zeroes?

mckamey picture mckamey · Dec 14, 2009 · Viewed 10.3k times · Source

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

Answer

daf picture daf · Dec 14, 2009

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