weibo.py 文件源码

python
阅读 39 收藏 0 点赞 0 评论 0

项目:spider-practice 作者: Wooden-Robot 项目源码 文件源码
def get_sp(password, pubkey, servertime, nonce):
    # rsa??
    key = rsa.PublicKey(int(pubkey, 16), 65537)
    message = str(servertime) + '\t' + str(nonce) + '\n' + password
    passwd = rsa.encrypt(message.encode("utf8"), key)
    # ????????16??
    sp = binascii.b2a_hex(passwd)
    # print(sp)
    return sp


# ?????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号