From d5b9d5b29668673e5b134681a22605ecca2fc728 Mon Sep 17 00:00:00 2001 From: cardinal9999 <86199598+cardinal9999@users.noreply.github.com> Date: Sat, 6 Nov 2021 21:55:58 -0400 Subject: [PATCH] Update encryption.py --- cryptoquail/encryption.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptoquail/encryption.py b/cryptoquail/encryption.py index 7a2a7e7..e6d1567 100644 --- a/cryptoquail/encryption.py +++ b/cryptoquail/encryption.py @@ -40,7 +40,7 @@ def decrypt_string(string, key): if secrets.compare_digest(key, "") == True: raise exceptions.EmptyKeyError("key must not be a null value") str1 = list(string) - _int_ = foobar.text2number(key) % int(len(newstring) // 1.5) + _int_ = foobar.text2number(key) % int(len(string) // 1.5) string = trans.dec("".join(str1), _int_) int_ = foobar.text2number(key) % 30 keylist = []