summaryrefslogtreecommitdiffstats
path: root/src/helpers.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers.cr')
-rw-r--r--src/helpers.cr10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index 1ababddf..1afe7674 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -163,3 +163,13 @@ def search(query, client)
end
end
end
+
+def decrypt_signature(a)
+ a = a.split("");
+ a.delete_at(0..2)
+ a = a.reverse
+ c = a[0]
+ a[0] = a[49 % a.size]
+ a[49] = c
+ return a.join("")
+end \ No newline at end of file