utils.py 文件源码

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

项目:aumbry 作者: pyarmory 项目源码 文件源码
def save_temporary_config(temp_file_path, output_path, fernet_key=None):
    with open(temp_file_path, 'rb') as fp:
        file_data = fp.read()

    if fernet_key:
        f = Fernet(fernet_key.encode('utf-8'))
        file_data = f.encrypt(file_data)

    with open(output_path, 'wb') as fp:
        fp.write(file_data)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号