<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
encobj = AES.new(secret, AES.MODE_CFB)<br>
File "/usr/lib64/python2.7/site-packages/Crypto/Cipher/blockalgo.py",<br>
line 141, in __init__<br>
self._cipher = factory.new(key, *args, **kwargs)<br>
ValueError: IV must be 16 bytes long<br>
<br>
So although the 'secret' is 16 bytes long, I'm getting a report saying it isn't?<br><br></blockquote></div><br>Hi Dave,<br>
<br>
The key is OK, but the IV is missing and it is mandatory for CFB.<br>Your code should be:<br><br>encobj = AES.new(secret, AES.MODE_CFB, some_iv)<br><br>where len(some_iv)==16.<br>