Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
anxiangyipiao opened this issue Apr 14, 2025 · 0 comments
Open

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

anxiangyipiao opened this issue Apr 14, 2025 · 0 comments

Comments

@anxiangyipiao
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant