Simple encryption proposal. Comments ?

Skip Montanaro skip at pobox.com
Sun Dec 29 22:10:04 EST 2002


    >> |import string, whrandom, cPickle, os

    Lulu> This rules out a OTP.  A one-time pad, by definition, is an
    Lulu> encryption against a true random key or the same length as the
    Lulu> plaintext.

Not that it will make the OP's code any more of a OTP, but starting in 2.3,
the default PRNG will be the Mersenne Twister.  As I understand it, it
should be significantly better than the current PRNG.

-- 
Skip Montanaro - skip at pobox.com
http://www.musi-cal.com/
http://www.mojam.com/




More information about the Python-list mailing list