python_weibo.py 文件源码

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

项目:python_demo 作者: Wasim37 项目源码 文件源码
def get_password(self, servertime, nonce, pubkey):
        """
        get legal password
        """
        string = (str(servertime) + "\t" + str(nonce) + "\n" + str(self.pass_word)).encode("utf-8")
        public_key = rsa.PublicKey(int(pubkey, 16), int("10001", 16))
        password = rsa.encrypt(string, public_key)
        password = binascii.b2a_hex(password)
        return password.decode()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号