summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-03-06 16:59:23 -0600
committerOmar Roth <omarroth@hotmail.com>2018-03-06 16:59:23 -0600
commite9f214cdc015e00a7b3e04eb73a735b046fd7014 (patch)
treedd96d3da769f4cf040cf8a60c5c4eb356bce4816 /src
parent2dae26e34866addd2e97fc68a1385ae183196f0c (diff)
downloadinvidious-e9f214cdc015e00a7b3e04eb73a735b046fd7014.tar.gz
invidious-e9f214cdc015e00a7b3e04eb73a735b046fd7014.tar.bz2
invidious-e9f214cdc015e00a7b3e04eb73a735b046fd7014.zip
Update signature function
Diffstat (limited to 'src')
-rw-r--r--src/helpers.cr16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index 86786876..2d2b9337 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -206,13 +206,17 @@ end
def decrypt_signature(a)
a = a.split("")
- a.reverse!
+ # 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.delete_at(0..2)
- a = splice(a, 35)
- a.delete_at(0)
- a.reverse!
- a = splice(a, 54)
-
+
return a.join("")
end