常见的特征: 移位,而且很多,而且移动的位数还不一样 能够找到一个 base64 表(可能会魔改) http://web.chacuo.net/netbasex import base64 STANDARD_ALPHABET = b'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' CUSTOM_ALPHABET = b'ZYXABCDEFGHIJKLMNOPQRSTUVWzyxabcdefghijklmnopqrstuvw0123456789+/' ENCODE_TRANS = bytes.maketrans(STANDARD_ALPHABET, CUSTOM_ALPHABET) DECODE_TRANS = bytes.maketrans(CUSTOM_ALPHABET, STANDARD_ALPHABET) def encode(input): return base64.b64encode(input).translate(ENCODE_TRANS) def decode(input): return base64.b64decode(input.translate(DECODE_TRANS)) print(decode("x2dtJEOmyjacxDemx2eczT5cVS9fVUGvWTuZWjuexjRqy24rV29q"))