Pycrypto

K.S.Sreeram sreeram at tachyontech.net
Sat Jun 17 09:45:10 EDT 2006


wittempj at hotmail.com wrote:
> ValueError: Input strings must be a multiple of 16 in length

As James Stroud noted, a CBC mode cipher is still a block cipher, and
the input *must* be a multiple of the block size.

OpenSSL provides a standard padding mechanism so that there are no input
size limitations for any cipher.

Have a look at http://tachyon.in/ncrypt/
It provides access to the OpenSSL ciphers (including padding).

Regards
Sreeram

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20060617/c4853fd4/attachment.sig>


More information about the Python-list mailing list