modes for AES encryption?

Chris Curvey ccurvey at earthlink.net
Tue Mar 29 13:40:28 EST 2005


Chris Curvey wrote:
> I'm trying to use the AES module in the Python Cryptography Toolkit.  I 
> need to set the mode to "ECB/NoPadding", and there's a reference to a 
> "Mode" parameter in the new() function, but no examples for AES.  Who 
> can point me in the right direction?

Answering my own question for posterity...ECB is your *only* option for 
AES, and you have to do your own padding (pad with "\0" to emulate 
NoPadding).




More information about the Python-list mailing list