Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Vevo Signature Length #1237

Closed
awojnowski opened this issue Aug 13, 2013 · 1 comment
Closed

Updated Vevo Signature Length #1237

awojnowski opened this issue Aug 13, 2013 · 1 comment

Comments

@awojnowski
Copy link
Contributor

@awojnowski awojnowski commented Aug 13, 2013

Decryption function:

function lj(a) {
    a = a.split("");
    a = mj(a, 52);
    a = a.reverse();
    a = mj(a, 18);
    a = a.reverse();
    a = a.slice(1);
    a = mj(a, 44);
    a = mj(a, 51);
    a = a.reverse();
    a = a.slice(1);
    return a.join("")
}

function mj(a, b) {
    var c = a[0];
    a[0] = a[b % a.length];
    a[b] = c;
    return a
};
@patrickslin
Copy link
Contributor

@patrickslin patrickslin commented Aug 14, 2013

new sig len 83 algo:

pairs:
4B8D03C157C3837742A0AA47AEF3D295CFFAAC476.7191265775BE8AC3130CB2CACE67A620B0CAA64C3
C46AAC0B026A76ECA32BC0313CA8E1577562B917.674CAAFFC592D3FEA74AA0A2477383C751C30D84

D48C4F5F9128645C70B98AA69E0CA24D35E69A098.940B9CC7A044E47A56DCCACAFE8EA619B134240C2
C042431B916AE8EFA2ACCD65A74E4B0A7CC94049.890A96E53D42AC0E96AA89B07C5468219F5F4C8D

python:
s[81:64:-1] + s[82] + s[63:52:-1] + s[45] + s[51:45:-1] + s[1] + s[44:1:-1] + s[0]

javascript
s.slice(65, 82).reverse().join('') + s[82] + s.slice(53, 64).reverse().join('') + s[45] + s.slice(46, 52).reverse().join('') + s[1] + s.slice(2, 45).reverse().join('') + s[0]

@phihag phihag closed this in e184202 Aug 14, 2013
phihag added a commit that referenced this issue Aug 14, 2013
Updated Vevo Signature Length (fixes #1237)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.