Skip to content

Commit

Permalink
fixed script
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberSteve777 committed Dec 29, 2024
1 parent 0b31813 commit 95d4a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

key = "65bd1b2305f46eb2806b935aab7630bb"
tool = RijndaelCBC(key=key, block_size=24)
magic = "DEADFED4"
magic = 0xDEADFED4


def decode(data: bytes):
Expand All @@ -20,7 +20,7 @@ def decode(data: bytes):
return step3

def encode(data: bytes):
step1 = binascii.unhexlify(magic) + struct.pack("<I", len(data)) + zlib.compress(data)
step1 = struct.pack("<I", magic) + struct.pack("<I", len(data)) + zlib.compress(data)
step2 = tool.encrypt(step1)
step3 = base64.b64encode(b"\x10\0" + step2)
return step3
Expand Down

0 comments on commit 95d4a35

Please sign in to comment.