Roblox CDN how to work out the hash

Hello! A couple years ago I asked this question: Roblox CDN, How do I know which one to use?, this worked perfect for 2 years, but roblox has changed how their CDN works, its no longer f4f786ead2f4de8d6ab879ae2498e860 their CDN is now 30DAY-f4f786ead2f4de8d6ab879ae2498e860 and I can’t work out how to hash this correctly to work out the correct roblox subdomain, any suggestions?

The old code says the API should be https://t4.rbxcdn.com/30DAY-f4f786ead2f4de8d6ab879ae2498e860 but its actually https://t6.rbxcdn.com/30DAY-f4f786ead2f4de8d6ab879ae2498e860

Any Ideas?
– Gerald :slight_smile:

1 Like

Hello my lovely peeps, I have reverse engineer the roblox hash system!!

Anyway for others who are struggling code is as followed. I know its virtually the same but this took 90mins to figure out ahahaha.

function get(hash) {
  for (var i = 31, t = 0; t < 38; t++)
    i ^= hash[t].charCodeAt(0);
  return `https://t${(i % 8).toString()}.rbxcdn.com/${hash}`;
}

Happy Coding
– Gerald :slight_smile:

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.