test_cli.py 文件源码

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

项目:python-rsa 作者: sybrenstuvel 项目源码 文件源码
def setUpClass(cls):
        # Ensure there is a key to use
        cls.pub_key, cls.priv_key = rsa.newkeys(512)
        cls.pub_fname = '%s.pub' % cls.__name__
        cls.priv_fname = '%s.key' % cls.__name__

        with open(cls.pub_fname, 'wb') as outfile:
            outfile.write(cls.pub_key.save_pkcs1())

        with open(cls.priv_fname, 'wb') as outfile:
            outfile.write(cls.priv_key.save_pkcs1())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号