summaryrefslogtreecommitdiffstats
path: root/src/helpers.cr
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-06-26 10:56:04 -0500
committerOmar Roth <omarroth@hotmail.com>2018-06-26 10:56:04 -0500
commitaa20f0424dbaca24e547b0b7f79ee9b5b0d2d814 (patch)
tree66ec6fc1227fbf8ba030a07cd81ff920a17818f7 /src/helpers.cr
parenta50ff5cffb5894a978ce5289eb3ab19eaf62c679 (diff)
downloadinvidious-aa20f0424dbaca24e547b0b7f79ee9b5b0d2d814.tar.gz
invidious-aa20f0424dbaca24e547b0b7f79ee9b5b0d2d814.tar.bz2
invidious-aa20f0424dbaca24e547b0b7f79ee9b5b0d2d814.zip
Update signature
Diffstat (limited to 'src/helpers.cr')
-rw-r--r--src/helpers.cr13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index c1fb1364..9c5317b0 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -298,14 +298,15 @@ end
def decrypt_signature(a)
a = a.split("")
- a.reverse!
- a = splice(a, 4)
- a = splice(a, 19)
- a.delete_at(0..1)
- a.reverse!
a = splice(a, 65)
- a = splice(a, 1)
+ a.delete_at(0..0)
+ a.reverse!
+ a = splice(a, 56)
+ a = splice(a, 49)
a.reverse!
+ a.delete_at(0..0)
+ a = splice(a, 60)
+ a.delete_at(0..0)
return a.join("")
end