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
如果觉得我的文章对你有用,请随意赞赏