3 ms·
This looks really interesting. Has YouTube ever published their URL generation technique? Any one has a guess how this was done? If they use a one way hash ove
by nafey 7y ago
This looks really interesting. Has YouTube ever published their URL generation technique?
Any one has a guess how this was done? If they use a one way hash over metadata and content if video does this not mean that someone has figured out their secret key.
- apocalyptic0n3 7y agoAs far as I was aware, the ID is just a hashed version of the actual database id being passed through an algorithm using base64. hashids[0] implements a similar method of obfuscating IDs. 0: https://hashids.org/ https://hashids.org/
- blattimwind 7y agoYou can also permute your ID space using a block cipher.
- tootie 7y agoI'm wondering how this could actually be exploited. Is there any value in knowing your URL ahead of time besides impressing the HN crowd?
- henryfjordan 7y agoyou can post links all around the web and do some kind of SEO-bomb for the video if you can guess the URL before hand, but that quickly happens organically for popular/viral stuff anyway