In <[EMAIL PROTECTED]>, mirandacascade
wrote:

> Would the following Python code perform AES256 encryption on plainText
> from Crypto.Cipher  import AES
> x = AES.new(a, AES.MODE_CBC, iv)
> x.encrypt(plainText)
> 
> assuming:
> a = the key value
> iv = an initialization vector
> ?

`a` must be of length 32 for AES256.  And the length of `plainText` must
be a multiple of 16 because it's a block cypher algorithm.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to