# -*- coding: utf-8 -*- from multiprocessing import cpu_count import threading import binascii import struct import base64 import json import time import os from Crypto.Cipher import AES # pip install pycryptodome def dump(file_path): #十六进制转字符串 core_key = binascii.a2b_hex("687A4852416D736F356B496E62617857") meta_key = binascii.a2b_hex("2331346C6A6B5F215C5D2630553C2728") unpad = lambda s: s[0:-(s[-1] if type(s[-1]) == int else ord(s[-1]))] f = open(file_path, 'rb') header = f.read(8) #字符串转十六进制 assert binascii.b2a_hex(header) == b'4354454e4644414d' f.seek(2,1) key_length = f.read(4) key_length = struct.unpack('= key_length: key_offset = 0 key_box[i] = key_box[c] key_box[c] = swap last_byte = c meta_length = f.read(4) meta_length = struct.unpack('