python: how to encrypt a file?

后端 未结 3 815
梦如初夏
梦如初夏 2021-01-21 06:55

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=qwertyui1         


        
3条回答
  •  轮回少年
    2021-01-21 07:09

    Use pycrypto - note that implmenting crypto properly, even using a library for the hard parts, is tricky. If security matters get expert help.

提交回复
热议问题