Skip to content

Commit

Permalink
style: Automatic code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 24, 2024
1 parent 3ea57a5 commit fdc552d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/processing/parsers/CAPE/Quickbind.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def decrypt(sbox, data, size):
temp_index2 = sbox[1] % 256 + 2
sbox[temp_index1], sbox[temp_index2] = sbox[temp_index2], sbox[temp_index1]
final_index = (sbox[temp_index2] + sbox[temp_index1]) % 256 + 2
decoded_string[i] = (sbox[final_index] ^ data[i])
decoded_string[i] = sbox[final_index] ^ data[i]
i += 1

return decoded_string
Expand All @@ -46,7 +46,7 @@ def is_hex(hex_string):
if len(hex_string) % 2 != 0:
return False

if not re.fullmatch(r'[0-9a-fA-F]+', hex_string):
if not re.fullmatch(r"[0-9a-fA-F]+", hex_string):
return False

return True
Expand Down

0 comments on commit fdc552d

Please sign in to comment.