3

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.

2
  • Why do you have to use those parameters? Commented Feb 8, 2011 at 18:00
  • You should use Rijndael. Commented Feb 8, 2011 at 18:01

3 Answers 3

5

You will need to use the Python Crypto Toolkit

IV is the Initialisation Vector.

Sign up to request clarification or add additional context in comments.

Comments

3

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

Comments

3

IV stands for Initialization Vector. Block cipher algorithms can be used in several operational modes; one of these modes is called CBC (Cipher-Block Chaining), in this mode the plain text block is XORed with the encrypted previous block. The IV is XORed with the initial plain text block. The IV can be see as an algorithm parameter.

A more detailed description can be read here.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.