feature: 2-byte xor key

This commit is contained in:
Dobin
2024-05-20 09:21:44 +01:00
parent 87cb4bfe5b
commit 0e08fde15d
7 changed files with 22 additions and 5 deletions
+5
View File
@@ -176,3 +176,8 @@ def ui_string_decode(data):
return "(utf16) " + data.decode("utf-16le")
else:
return "(utf8) " + data.decode("utf-8")
def ascii_to_hex_bytes(ascii_bytes):
hex_escaped = ''.join(f'\\x{byte:02x}' for byte in ascii_bytes)
return hex_escaped