Simple encryption proposal. Comments ?

Bengt Richter bokr at oz.net
Thu Jan 2 14:52:07 CET 2003


On 02 Jan 2003 04:21:00 -0800, Paul Rubin <phr-n2002b at NOSPAMnightsong.com> wrote:

>richie at entrian.com (Richie Hindle) writes:
>> Is your base52 code (or *any* such code) available anywhere?  Googling for
>> "python base52" didn't turn anything up.
>
>Here's one I threw together:
>
># ==== base52.py =======================================================
[ .. code snipped ...]

># _test2()    # depends on secrand.py module, not included
                                               ^^^^^^^^^^^^

We seem to a chain going ;-) Google doesn't ... Um, where might one ...



Thanks for posting, mine was in C++ and not so pretty (though fast enough ;-)

BTW, (untested)

    k1, k2, k3 = map(_inv_letters.__getitem__, x[i:i+3])

might be an interesting alternative to the list comprehension?

Regards,
Bengt Richter




More information about the Python-list mailing list