help to convert c++ fonction in python

geremy condra debatem1 at gmail.com
Sat Oct 17 20:13:42 EDT 2009


On Sat, Oct 17, 2009 at 7:57 PM, David Robinow <drobinow at gmail.com> wrote:
> On Sat, Oct 17, 2009 at 7:48 PM, geremy condra <debatem1 at gmail.com> wrote:
>> For the love of baby kittens, please, please, please tell me that
>> you do not believe this securely encrypts your data.
>  Yeah, I think it's pretty good.
> Can you do better?
>

Trivially. Use AES, 3DES, any standard cryptosystem- there are
literally dozens of excellent, well-studied implementations in
both C++ and Python, and hardware implementations on many
processors.

The cipher listed will fall in a single round of chosen plaintext
attacks or chosen ciphertext attacks, and with a keylength of
40 bytes against a message length of 768 will give me roughly
19 windows on a single encryption. Frequency analysis is
therefore going to be extremely profitable, not to mention
trivially easy.

Geremy Condra



More information about the Python-list mailing list