How does Instagram name files

拜拜、爱过 提交于 2019-12-10 16:24:19

问题


How does Instagram name files, are the file names random? based on some sort of hash? or is there some meaning to them? for example

http://distilleryimage2.instagram.com/21a9ca729bf511e2985c22000a1f9ad3_7.jpg


回答1:


Good answer - The blog post is out of date now as their naming has changed, but it's probably still based on MD5.




回答2:


After further inspection, I think it's just an MD5 hash or something followed by _# for the image size




回答3:


Instagram uses an MD5 hash as the base name, followed by an underscore and a number representing the image size. Note that they probably don't just use file contents in their hash, as uploading the same image would possibly generate a filename collision, so they probably add in some entropy into their calculation.



来源:https://stackoverflow.com/questions/15778047/how-does-instagram-name-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!