Can an MD5-hash begin with a zero?

前端 未结 8 2899
鱼传尺愫
鱼传尺愫 2021-02-20 05:58

Can an MD5-hash begin with a zero? What about SHA-1?

8条回答
  •  闹比i
    闹比i (楼主)
    2021-02-20 06:11

    Of course. Or two zeros. Or more. In general, the probability of a "random" input hashing to a result with k leading zero nybbles is about 2-4k.

提交回复
热议问题