Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Error in Decryption Test (youtube_genalgo.py) #1441
Comments
|
You're mistaken; the input string is 92 characters:
The signatures come from the HTML5 player code. I'm working on adding automated extraction. It works fine for HTML5, but alas is not finished for the Flash player. |
|
LOL...Interesting. But I think not. Looks like your Len function is lying to you. Try physically counting the characters. I assume we're talking from the 'q' character to the quote character (leaving off the first quote and the last quote....and that means the last character inside the quotes is a quote character). There are 93 characters. Anyway, do your really want to use the quote character as a test character? I would think this would cause issues like this. Thanks, |
|
|
|
Thanks for the insight. I don't know python syntax but I know how to count and the count added up to 93. But it seems my ignorance in python makes me wrong in the end. LOL Is there a reason for the test cast to go out of its way to use a character that you have to escape with the ""? Just curious now. On a related note, I didn't fully understand phihag's comment above about the signatures coming from the HTML5 player code. Is that the video.js player or is he talking about something else? I ran across some interesting code from the youtube5 project that had a more formula based approach to the decryption algorithm. However, I could not get it to match the test cases results from the youtube-dl project. The code is below. Are you aware of the youtube5 approach? What is your take on it? I am looking for an algorithm description document (ADD) on how to decrypt the youtube URL download signatures. If you have any insight on that process I'm all ears.
Thanks, |
|
@JamesRickman4 This code is equivalent to one of the lines in our code that look like
Please bear in mind that this is an issue tracker about issues with youtube-dl. If your copy of youtube-dl doesn't work in some way or you want to suggest an improvement, feel free to do so. |
|
Ok. Fair enough. Thanks for the quick replies. I'll look elsewhere for answers to my questions. :-) |
I think there is an error in the line...
tests = [
#92 - vflQw-fB4 2013/07/17
("qwertyuioplkjhgfdsazxcvbnm1234567890QWERTYUIOPLKJHGFDSAZXCVBNM!@#$%^&()-+={[]}|:;?/>.<'`~"",
"mrtyuioplkjhgfdsazxcvbnq1234567890QWERTY}IOPLKJHGFDSAZXCVBNM!@#$%^&()-+={[]"|:;"),
The input test string is actually 93 characters if you count them and I don't think you wanted to include quotes as a test character in the string like you did at the end of the input string (the test has "" at the end).
I am interested in how you derive the algorithms to decrypt the signature. Are those published somewhere?
Thanks,
James