How many random elements before MD5 produces collisions?

前端 未结 8 1946
执笔经年
执笔经年 2020-11-22 12:25

I\'ve got an image library on Amazon S3. For each image, I md5 the source URL on my server plus a timestamp to get a unique filename. Since S3 can\'t have subdirectories, I

8条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 12:38

    MD5 collision is extremely unlikely. If you have 9 trillion MD5s, there is only one chance in 9 trillion that there will be a collision.

提交回复
热议问题