How many random elements before MD5 produces collisions?

前端 未结 8 1809
执笔经年
执笔经年 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:46

    Doesn't really matter how likely it is; it is possible. It could happen on the first two things you hash (very unlikely, but possible), so you'll need to support collisions from the beginning.

提交回复
热议问题