How are the short-urls for data extraction generated?

I have read the code in github and so far what I have been able to gather is that something is hashed and then base62’d. However, I haven’t been able, through my code analysis, to figure out what is initially hashed in the first place.

Can anyone shed a light, please?

What are you trying to do? Why do you care?

I think that this is your answer:

If you’re looking for the filename of uploads, it’s a hash of the content. It’s how to see that files are uploaded only once.

But knowing what you’re trying to accomplish would help get you an answer to whatever your question really is.

2 Likes

Thank you, Jay. I am trying to see if there would be a way to guess the endpoint of data extraction for a given user. When I request a data extraction I need to send a GET request to /uploads/short-url/{something}.zip. My goal is to find out whether there is a way to guess the value of {something} for a specific account.

You can’t guess the url unless you have the file, as the hash is based on the file contents.

How are people posting the data? You’ll need to pull it from the post where they uploaded it

1 Like