a python puzzle

Delaney, Timothy tdelaney at avaya.com
Wed Sep 25 20:09:52 EDT 2002


> From: Erik Max Francis [mailto:max at alcyone.com]
> 
> Michal Wallace wrote:
> 
> > Here's a python puzzle. Solve it and you win a prize. :)
> 
> tr hokdrafwfezxtculyjqmbipsvHIFg importsysngadfzjehulvcwbxICSk
> 
> I started by decoding the (obvious) Python source, which made the job
> considerably easier.

Trivially easy in fact - since it's just a substitution cypher, you've
already got a lot of information just from the first line of python code -
the first line obviously starts as

    import sys

and

    cdr kmxhe, irwka he uhk(farhez.myaayrf, ihkjyr):
    ^^^              ^^

is trivially

    for kmxhe, irwka in uhk(farhez.myaayrf, ihkjyr):
    ^^^              ^^

which gives you a few more letters. In fact, by that stage you already have
12 out of 26 characters.

I suspect it took Holger somewhat less than half an hour to solve ... 5
minutes at most, and most of that is writing the decryption code ;)

Tim Delaney




More information about the Python-list mailing list