Log in

View Full Version : Video2mp3.net Encryption Question



SChaput
07-30-2010, 02:00 AM
Good Evening,

I'm trying to manipulate video2mp3.net. Here is the main function of the site.

type youtube url into the site (ie http://www.youtube.com/watch?v=lXw0RpWRZC4)
wait for the converstion to finish
click download or wait 20 seconds to get the .mp3

The download like they provide you for the youtube video above it, http://www.video2mp3.net/load/YouTub...ae643f5d977fa/

I'm trying to figure out how to discover that number in the url {5627ef6fe3db321348fae643f5d977fa} I've figured out that it is unique to the youtube video id {lXw0RpWRZC4} but can't figure out how they get to that number.

I wrote a php script to encrypt the youtube ID up to 100,000 times looking for the string but have had no luck.

Can anyone shed any light on how they get this number?

Thanks alot

djr33
07-30-2010, 02:47 AM
There's no rule about how they do this. It might be as simple as md5 or sha1 (common encryption algorithms), but since those are meant to encrypt in an irreversible way, I don't really see how that would benefit here. So there's no real way to guess. The only way to find out is to use trial and error and compare a number of IDs to codes. My guess is that the reason it's in a weird format like this is that they don't want you to be able to guess-- that's probably the entire purpose of that, or they could just use the original ID. Therefore it may be a very unique algorithm that can't be easily guessed (not necessarily complex, just unusual). For example, it might be the md5 of the sha1 of the reversed ID, or something random like that. Or something unrelated to anything we'd guess.


However, aside from this being a somewhat interesting logic puzzle, this isn't really the type of question that is appropriate here because of the legal gray area it relates to. I don't know the TOS of youtube well enough to know if this is really against their rules, or the TOS of this site to see if you are allowed to access the URLs directly (and whether or not their TOS is in any way valid, depending on what youtube's rules are). So because of that, it may be best to not continue this discussion. Regardless, there's no reason anyone here would know any more than you do about it since it's just a specific algorithm, not a standard aspect of web design.