Files
onionHEN/source/shellui/assets/encryptxml.py
T
Hexwell 04462fbe7f ui: rename toolbox and brand assets to OrionHEN
Rename toolbox XML/SXML, settings icon, and marketing assets so embeds
and encrypt paths match the OrionHEN brand.
2026-07-10 13:06:48 +08:00

22 lines
689 B
Python

# xor_encrypt.py
def xor_encrypt(input_file, output_file, key):
key_bytes = key.encode() # Convert key string to bytes
with open(input_file, 'rb') as f:
data = f.read()
encrypted_data = bytearray()
key_len = len(key_bytes)
for i, byte in enumerate(data):
encrypted_data.append(byte ^ key_bytes[i % key_len])
with open(output_file, 'wb') as f:
f.write(encrypted_data)
if __name__ == '__main__':
key_base64 = 'U0lTVFIwX0lfU0VFX1lPVQ==' # Base64 encoded key string
# Use the Base64 string directly as the key
xor_encrypt('shellui/assets/OrionHEN_toolbox.xml', 'shellui/assets/OrionHEN_toolbox.sxml', key_base64)