Skip to content

参考资料:小报童请求头sign #14

Open
@anxiangyipiao

Description

@anxiangyipiao

MD5加密

import hashlib
import time

def get_sign(t):
"""
生成签名。
"""
md5_hash = hashlib.md5(("dbbc1dd37360b4084c3a69346e0ce2b2." + str(t)).encode('utf-8')).hexdigest()
return md5_hash

示例用法

if name == 'main':
n = int(time.time())
n = '1744598015'
l = get_sign(n)
print("sign", l)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions