send_personal_msg.py 文件源码

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

项目:jtyd_python_spider 作者: xtuyaowu 项目源码 文件源码
def get_password(password, servertime, nonce, pubkey):
    rsa_publickey = int(pubkey, 16)
    key = rsa.PublicKey(rsa_publickey, 65537)
    message = str(servertime) + '\t' + str(nonce) + '\n' + str(password)
    message = message.encode("utf-8")
    passwd = rsa.encrypt(message, key)
    passwd = binascii.b2a_hex(passwd)
    return passwd


# post data and get the next url
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号