Finding domains from asset UUIDs

So basically, if I have an asset with the hash of 30DAY-236d022389d3eb3c94b561b7a52f44d4, the Roblox site resolves it to https://t4.rbxcdn.com/30DAY-236d022389d3eb3c94b561b7a52f44d4.

How does it process the subdomain of t4? I checked some other requests, and I just cannot find how it is resolving to the t4 subdomain.

Thanks

It does some bitwise math and a modulus to get the subdomain digit. Here’s a DevForum user’s JavaScript implementation of that.

1 Like