diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-03-07 08:07:40 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-03-07 08:07:40 -0600 |
| commit | 212ba0504795da802b42083c8be469dc7ce326e3 (patch) | |
| tree | 78a14f6508160b14aba62468d21fe93296692e1e /src | |
| parent | 8a3056d0e3cd4ae15bc24383b826adf77e049567 (diff) | |
| download | invidious-212ba0504795da802b42083c8be469dc7ce326e3.tar.gz invidious-212ba0504795da802b42083c8be469dc7ce326e3.tar.bz2 invidious-212ba0504795da802b42083c8be469dc7ce326e3.zip | |
Update signature function
Diffstat (limited to 'src')
| -rw-r--r-- | src/helpers.cr | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/helpers.cr b/src/helpers.cr index 6ecd1e04..7aefe615 100644 --- a/src/helpers.cr +++ b/src/helpers.cr @@ -206,16 +206,13 @@ end def decrypt_signature(a) a = a.split("") - # a.reverse! - # a.delete_at(0..2) - # a = splice(a, 35) - # a.delete_at(0) - # a.reverse! - # a = splice(a, 54) - - a = splice(a, 53) - a = splice(a, 47) + a.reverse! + a = splice(a, 23) a.delete_at(0..2) + a.reverse! + a = splice(a, 45) + a.reverse! + a = splice(a, 66) return a.join("") end |
