How to generate a unique hash for a URL?

前端 未结 12 1331
时光取名叫无心
时光取名叫无心 2020-12-28 08:11

Given these two images from twitter.

http://a3.twimg.com/profile_images/130500759/lowres_profilepic.jpg
http://a1.twimg.com/profile_images/58079916/lowres_pr         


        
12条回答
  •  囚心锁ツ
    2020-12-28 09:02

    One of the key concepts of a URL is that it is unique. Why not use it?

    Every algorithm that shortens the info, can produce collisions. Maybe unlikely, but possible nevertheless

提交回复
热议问题