From 212ba0504795da802b42083c8be469dc7ce326e3 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 7 Mar 2018 08:07:40 -0600 Subject: [PATCH] Update signature function --- src/helpers.cr | 15 ++++++--------- 1 file 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