AES and Credit card number encryption

Tobiah toby at tobiah.org
Mon Jan 22 15:44:55 EST 2007


I browsed this subject and thought I might use the
'AES' cypher scheme to do this.  Would this be
a good choice?

I came across a "Python Cryptography Toolkit"

http://www.amk.ca/python/code/crypto

which has a nice AES implementation, but in
the example, a simple string is passed as the
key:

obj=AES.new('abcdefgh', AES.ECB)

So my real question is, how do I go about
generating the best key.  Isn't the length
supposed to be a 2^n bits, and soforth?

Thanks,

Tobiah

-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list