Re: Question about crypto

2013-08-19 Thread Anthony Papillion
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

Re: Question about crypto

2013-08-19 Thread Anthony Papillion
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

Re: Question about crypto

2013-08-18 Thread Roy Smith
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

Re: Question about crypto

2013-08-18 Thread Skip Montanaro
> 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

Question about crypto

2013-08-18 Thread Anthony Papillion
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