Re: Re: YouTube degradation

Home › Forums › Help and Support › YouTube degradation › Re: Re: YouTube degradation

#30679
cadbusca
Member

Here was my request to Tantric. I have no idea how to reorder strings in C so someone else needs to code it per the spec. Even if the code is “rough” or just a sample for one of the strings I will test and take it from there.
============================================================================
YouTube is broken again. They are gradually converting to encoded signatures.

Depending on the length of the input signature string, varying
portions (some in reverse) need to be assembled to create a 41 character
output signature with ranges as follows:

//88 = 2.3.4..11.12.13..47.48.49..61. 63..66.67.68..81.82 85
//out = s[48] + s[81..68] + s[82] + s[66..63] + s[85] + s[61..49] + s[67] + s[47..13] + s[3] + s[11..4] + s[2] + s[12]
//87 = 0 3..51 53..61.62.63..82.83
//out = s[62] + s[82..63] + s[83] + s[61..53] + s[0] + s[51..3]
//86 = 2..62.63.64..81.82
//out = s[2..62] + s[82] + s[64..81] + s[63]
//85 = 0.1 3..49 51..59 61..75.76.77..82.83
//out = s[76] + s[82..77] + s[83] + s[75..61] + s[0] + s[59..51] + s[1] + s[49..3]
//84 = 2.3.4..25.26.27..35 37..83
//out = s[83..37] + s[2] + s[35..27] + s[3] + s[25..4] + s[26]
//83 = 2.3..35.36.37..51.52.53..54.55.56..81.82
//out = s[52] + s[81..56] + s[2] + s[54..53] + s[82] + s[51..37] + s[55] + s[35..3] + s[36]
//82 = 0.1..32.33.34.35.36.37..39.40.41..66.67.68..79 81
//out = s[36] + s[79..68] + s[81] + s[66..41] + s[33] + s[39..37] + s[40] + s[35] + s[0] + s[67] + s[32..1] + s[34]

Problem is I have no ability to code that part. If you can give me the code along with any necessary functions to transform an input string to an output string then I can add the rest.