title: Pycrypto aes 256  Initialization vector size
body: <p>here's the case i have a php script that's using aes256 ,CBC 
  the both key and IV size are 32 bytes long</p>
  
  <pre><code>data= '123456789abcdef' 
  from Crypto.Cipher import AES
  a = AES.new('oqufXQ(?bc=6_hR2I3sMZChDpb6dDlw4',2,'fOaiIOkD8*9Xeu_s4_bb87Ox_UG+D9GA')
  print a.encrypt(data)
  </code></pre>
  
  <p>and the error i got </p>
  
  <pre><code>&lt;type 'exceptions.ValueError'&gt;: IV must be 16 bytes long
  Traceback (most recent call last):
    File "/base/data/home/apps/s~xxxxxxx/1.155074369696961822/main.py", line 4, in &lt;module&gt;
  </code></pre>
  
  <p>php code that works </p>
  
  <pre><code> echo base64_encode(encrypt('0123456789abcdef'))  ;
  
  
   function encrypt($data)
    {
      return mcrypt_encrypt(MCRYPT_RIJNDAEL_256 ,'oqufXQ(?bc=6_hR2I3sMZChDpb6dDlw4', $data , MCRYPT_MODE_CBC, utf8_encode('fOaiIOkD8*9Xeu_s4_bb87Ox_UG+D9GA') );
    }
  </code></pre>
  
  <p>I cant change the IV size </p>
  
  <p>Note that I am Not very Familiar With Python,  Just Need a way to encrypt data as  it will be one appengine . </p>