summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-03-03 09:51:58 -0600
committerOmar Roth <omarroth@hotmail.com>2018-03-03 09:51:58 -0600
commit2e892e8dd4618f34bc54162acc1f660c903a8328 (patch)
treef9eb51c51f4cfb2ed7b03620f67b0dd2eeb55455 /src
parentdff93f67f95a749cc393416d58b4212b7fb91c8d (diff)
downloadinvidious-2e892e8dd4618f34bc54162acc1f660c903a8328.tar.gz
invidious-2e892e8dd4618f34bc54162acc1f660c903a8328.tar.bz2
invidious-2e892e8dd4618f34bc54162acc1f660c903a8328.zip
Update signature
Diffstat (limited to 'src')
-rw-r--r--src/helpers.cr10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index dd62cfc0..ca01400d 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -185,14 +185,12 @@ end
def decrypt_signature(a)
a = a.split("")
- a.delete_at(0..1)
- a = splice(a, 2)
- a = splice(a, 51)
- a = splice(a, 9)
- a.delete_at(0..1)
a.reverse!
- a = splice(a, 15)
a.delete_at(0..2)
+ a = splice(a, 35)
+ a.delete_at(0)
+ a.reverse!
+ a = splice(a, 54)
return a.join("")
end