pycrypto: what am I doing wrong?

Johannes Bauer dfnsonfsduifb at gmx.de
Thu Oct 24 03:30:26 EDT 2013


On 24.10.2013 09:07, Chris Angelico wrote:
> On Thu, Oct 24, 2013 at 4:22 PM, Paul Pittlerson <menkomigen6 at gmail.com> wrote:
>> msg = cipher.encrypt(txt)
>>
>>>>> '|s\x08\xf2\x12\xde\x8cD\xe7u*'
>>
>> msg = cipher.encrypt(txt)
>>
>>>>> '\xa1\xed7\xb8h<l\x7f\xd7\xba\xed'
>>
>> # etc
> 
AES is a stream cipher;

No, it is definitely not! It's a block cipher! However, since he uses
CFB mode of operation, it behaves like a stream cipher.

Best regards,
Joe


-- 
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht öffentlich!
Ah, der neueste und bis heute genialste Streich unsere großen
Kosmologen: Die Geheim-Vorhersage.
 - Karl Kaos über Rüdiger Thomas in dsa <hidbv3$om2$1 at speranza.aioe.org>



More information about the Python-list mailing list