11
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]

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.

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 4 points 1 year ago* (last edited 1 year 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.

this post was submitted on 24 May 2024
11 points (100.0% liked)

chat

8422 readers
138 users here now

Chat is a text only community for casual conversation, please keep shitposting to the absolute minimum. This is intended to be a separate space from c/chapotraphouse or the daily megathread. Chat does this by being a long-form community where topics will remain from day to day unlike the megathread, and it is distinct from c/chapotraphouse in that we ask you to engage in this community in a genuine way. Please keep shitposting, bits, and irony to a minimum.

As with all communities posts need to abide by the code of conduct, additionally moderators will remove any posts or comments deemed to be inappropriate.

Thank you and happy chatting!

founded 4 years ago
MODERATORS