summaryrefslogtreecommitdiffstats
path: root/src/helpers.cr
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-06-06 13:20:09 -0500
committerOmar Roth <omarroth@hotmail.com>2018-06-06 13:20:09 -0500
commit5e572c46100d6d97c9925c52d1a5cc6e901e6c3f (patch)
tree9821cf165db3cf1a1faa70fab1602b0b8719b82d /src/helpers.cr
parent3c9fb5ab718fc2b296d66fcba5c0dc6682c67cd9 (diff)
downloadinvidious-5e572c46100d6d97c9925c52d1a5cc6e901e6c3f.tar.gz
invidious-5e572c46100d6d97c9925c52d1a5cc6e901e6c3f.tar.bz2
invidious-5e572c46100d6d97c9925c52d1a5cc6e901e6c3f.zip
Update signature
Diffstat (limited to 'src/helpers.cr')
-rw-r--r--src/helpers.cr10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index 023bea2f..75aa5c78 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -298,11 +298,13 @@ end
def decrypt_signature(a)
a = a.split("")
- a.reverse!
- a = splice(a, 50)
- a.delete_at(0..1)
- a.reverse!
+ a = splice(a, 21)
a.delete_at(0..2)
+ a = splice(a, 41)
+ a.reverse!
+ a.delete_at(0..0)
+ a = splice(a, 21)
+ a.delete_at(0..0)
return a.join("")
end