From e0d156d227b5ef8c15f3d59d1cf5045d30276998 Mon Sep 17 00:00:00 2001 From: cccs-jh <63320703+cccs-jh@users.noreply.github.com> Date: Thu, 26 Nov 2020 16:00:00 -0500 Subject: [PATCH] Fixed typing error Concatenating a slice with a single index can cause type errors. Replaced the single index with a slice of lenth 1 so that the type is consistent. --- deobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deobs.py b/deobs.py index 374e32b..1e55f94 100644 --- a/deobs.py +++ b/deobs.py @@ -384,7 +384,7 @@ def simple_xor_function(self, text): else: option_a.append((f, x, k, None)) # try by shifting the key by 1 - res = self.xor_with_key(binascii.a2b_hex(x), k[1:] + k[0]) + res = self.xor_with_key(binascii.a2b_hex(x), k[1:] + k[0:1]) if self.printable_ratio(res) == 1: option_b.append((f, x, k, res)) # print 'B:',f,x,k, res