标签:blog os for art ar div log python
import os import sys import struct def enc(path, key): path_ret = "" for i in range(0, len(path)/4): path_ret += struct.pack("<L", struct.unpack("<L", path[i*4 : (i*4)+4])[0] ^ key) return path_ret print enc("daniel King ", 0x0) print enc("daniel King ", 0xFFFFFFFF) print enc(enc("daniel King ", 0xFFFFFFFF), 0xFFFFFFFF)
>>> ================================ RESTART ================================ >>> daniel King 洖憱殦叽枒樳 daniel King >>>
标签:blog os for art ar div log python
原文地址:http://www.cnblogs.com/long123king/p/3904118.html