On 08/18/2013 05:52 PM, Roy Smith wrote:
> In article ,
> Anthony Papillion wrote:
>
>> I've just started working with the Crypto library and I've already run
>> into a wall even though I'm following a tutorial. Basically, I'm trying
>> to encrypt a string using AES in CBC mode. Here is the code
On 08/18/2013 05:29 PM, Skip Montanaro wrote:
>> When I run the code above, I am told that the IV must be 16 bytes long.
>> I'm assuming that the IV (I know that means "Initialization Vector") is
>> either the key OR something else I can set. But I don't know how or what
>> to do.
>
> Does this St
In article ,
Anthony Papillion wrote:
> I've just started working with the Crypto library and I've already run
> into a wall even though I'm following a tutorial. Basically, I'm trying
> to encrypt a string using AES in CBC mode. Here is the code:
>
> from Crypto import AES
You don't say exact
> When I run the code above, I am told that the IV must be 16 bytes long.
> I'm assuming that the IV (I know that means "Initialization Vector") is
> either the key OR something else I can set. But I don't know how or what
> to do.
Does this Stack Overflow thread help? It looks to me like you are
I've just started working with the Crypto library and I've already run
into a wall even though I'm following a tutorial. Basically, I'm trying
to encrypt a string using AES in CBC mode. Here is the code:
from Crypto import AES
import hashlib
text_to_encrypt = 'This is a super secret encrypted mes