How do you get from the value on the left to the value on the right?

UUID ?
2126816c-89f5-4aab-842f-65b9f3a39c8b 56qHyeZvHYZitUFukWo5rz
8b9f9c44-6e1b-485b-af00-c8b0e0067d59 ieZJYUFB83oQacsNiQ55Bt
72bd4bd2-9538-43f3-81b2-b8df991a32d8 faLTidGsoG1G1TPLKUFcJh

It’s not hex to base64 or hex to base58. That’s when I gave up and decided to comradesource it.


Context


PeerTube creates two URLs for each video. The original, long one looks like this:

https://tankie.tube/videos/watch/2126816c-89f5-4aab-842f-65b9f3a39c8b

And the sleeker format looks like this:

https://tankie.tube/w/faLTidGsoG1G1TPLKUFcJh

The database only stores the UUID so the shorter ID must be a function of the first.

  • TankieTanuki [he/him]@hexbear.netOP
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    6 months ago

    Thank you!

    party-blob gold-communist gold-antifa meow-bounce

    It looks like the bitcoin implementation has the lowercase letters coming after the uppercase. That explains it. I assumed it was standardized.