python:如何加密文件? [英] python: how to encrypt a file?

查看:200
本文介绍了python:如何加密文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助(或指出一些例子)如何使用python加密文件?
我必须使用以下参数加密文件:

 块大小= 8 
iv = qwertyui12345678
method = des3_cbc

我也不知道什么 iv 意味着



请帮忙。感谢提前。

解决方案

您将需要使用 Python Crypto Toolkit



IV是初始化向量。


Can anybody help(or point to some examples) about how to encrypt files with python? I have to use following parameters to encrypt file:

block size=8
iv=qwertyui12345678
method=des3_cbc

Also I have no idea about what iv means

Please help. Thanks in advance.

解决方案

You will need to use the Python Crypto Toolkit

IV is the Initialisation Vector.

这篇关于python:如何加密文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆