title: AES 256 bits CBC PKCS#5 encrypt / decrypt in Python
body: <p>I am working on an app that needs to encrypt / decrypt data coming from and going to client app coded in AS3 (yeah I know...) that use this lib <a href="http://crypto.hurlant.com/" rel="nofollow noreferrer">http://crypto.hurlant.com/</a></p>
  
  <p>I found many threads here or there about AES encryption with Python but for some reason I wasn't able to use them in my case.</p>
  
  <p>My encrypted data is AES 256 bits CBC PKCS#5 then Base64 encoded and transmitted via web socket to Python.</p>
  
  <p>Example of data generated by client app :</p>
  
  <p>key : fce4aa4dcf0d2b27fe4ffdafa602c81d1930c410f48ada5c763d4c4052a939eb</p>
  
  <p>IV : c75271d593ca86ca785e3bb25e8d02cb</p>
  
  <p>clear data : This bloody encryption engine won't work !</p>
  
  <p>encrypted data : 44FsQIcqM412+YXZBwwoQSCz2uB9QPQMXJ410Xpw1f/M5RTRS7N6yfziAGq/Fd/E</p>
  
  <p>I tried using the code on this thread <a href="https://stackoverflow.com/questions/12524994/encrypt-decrypt-using-pycrypto-aes-256/12525165#12525165">Encrypt &amp; Decrypt using PyCrypto AES 256</a> but there are so many example with different settings that I don't know which one to choose, and I am really a noob with encryption.
  Any help on this ?</p>