From 228008168a83e01bb3dfe602d6df24c5a31a26c2 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 22 Mar 2018 11:02:15 -0500 Subject: [PATCH] Update signature --- src/helpers.cr | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/helpers.cr b/src/helpers.cr index 4d6666ca..ef70c630 100644 --- a/src/helpers.cr +++ b/src/helpers.cr @@ -223,10 +223,15 @@ end def decrypt_signature(a) a = a.split("") + a = splice(a, 12) + a = splice(a, 18) a.reverse! - a.delete_at(0) + a.delete_at(0..2) a.reverse! - a = splice(a, 50) + a.delete_at(0..2) + a = splice(a, 69) + a.reverse! + a.delete_at(0..2) return a.join("") end