How are hashes generated in tumblr image urls?

Disclaimer: The amateur is here, not a professional programmer. Working on a pet project, nothing that would be useful in the real world.

I am trying to determine how the hashes in the URL of a tumblr image are somehow related to the contents of the image itself. A typical URL is as follows:

media.tumblr.com/3b675b5cdc9c6f9414626ba7e0c62f96/tumblr_n8949eWEIi1rw1wnno1_400.gif

As you can see, there is a 32-character hash and another 19-character hash. I have tried all the hashing algorithms supported by PHP 5.4.24, but none of them produce any of these codes. I looked at the useless tumblr api and worked a little, but I can not find anything about how these codes are generated. Does anyone outside tumblr know?

+4
source share
1 answer

I doubt this is just a hash of content, people are constantly downloading duplicates, and this should lead to a different url. They are probably randomly generated.

+1
source

Source: https://habr.com/ru/post/1547274/


All Articles