爱奇艺/VPS? VF算法python版本

2017-6-26 admin 算法

import hashlib
 
def get_vf(url_params):
    sufix=''
    for j in range(8):
        for k in range(4):
            v4 = 13 * (66 * k + 27 * j) % 35
            if ( v4 >= 10 ):
                v8 = v4 + 88
            else:
                v8 = v4 + 49
            sufix += chr(v8)
    url_params += sufix
    m = hashlib.md5()
    m.update(url_params.encode('utf-8'))
    vf = m.hexdigest()
    return url_params

标签: python iqiyi vf

发表评论:

Powered by emlog