import base64 import os #sakuradied defen(Str): code = """gx74KW1roM9qwzPFVOBLSlYaeyncdNbI=JfUCQRHtj2+Z05vshXi3GAEuT/m8Dpk6""" code1 = """ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=""" ii = 0 w = '' for a in Str: ii = 0 for b in code: if a == b: w = code1[ii] + w ii = ii + 1 b64 = (w[::-1]) #print(b64) try: ba64 = base64.b64decode(b64) print(ba64.decode()) except Exception as err: print("失败,请检查您输入的是否正确,错误信息为:",err)
#!/usr/bin/python3 import base64 import os #sakuradied
defen(Str): code1 = """gx74KW1roM9qwzPFVOBLSlYaeyncdNbI=JfUCQRHtj2+Z05vshXi3GAEuT/m8Dpk6""" code = """ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=""" w='' for a in Str: ii = 0 for b in code: if a == b: w= w + code1[ii] ii = ii +1 print(w)