def get_vip_gtk(skey):
hash_code = 5381
md5key = "tencentQQVIP123443safde&!%^%1282"
result = [hash_code << 5]
for i in range(len(skey)):
ascode = ord(skey[i:i + 1])
result.append((hash_code << 5) + ascode)
hash_code = ascode
strings = "".join([str(i) for i in result]) + md5key
m = hashlib.md5()
m.update(bytes(strings, encoding='utf-8'))
return m.hexdigest()
Last modification:April 2, 2020
© Allow specification reprint
One comment
不错不错,我喜欢看 https://www.ea55.com/