贵旅优品
分享源代码
#def gen_sig(v,secret_key=""):
dict_sort_res = dict(sorted(v.items(),key=lambda x:x[0]))
ss = ""
for key,value in dict_sort_res.items():
if key not in ["signcode"]:
ss += f"{key}{value}"
r = secret_key + ss + secret_key
return hashlib.md5(r.upper().encode()).hexdigest()
安心E购
def get_deviceId():
s = "0123456789"
m = "qwertyuiopasdfghjklzxcvbnm"
start = [random.choice(s) for i in range(3)] + [random.choice(m) for i in range(5)]
end = [random.choice(s) for i in range(4)] + [random.choice(m) for i in range(3)] + [random.choice(s) for i in range(5)]
start[-3] =random.choice(s)
v = "".join(start) + "-7218-38ce-98e8-" + "".join(end)
return v
空港商城
def random_V():
小农 s = "0123456789QWERTYUIOPASDFGHJKLZXCVBNM"
t = []
黄果树
for i in range(32):
巡航出山 t.append(random.choice(s))
return "".join(t)