# a python puzzle

Wed Sep 25 18:33:17 EDT 2002

```It's time to test your brainpower! I will give
six months of free web hosting to the first person
to solve this cryptogram. Can you figure it out?

Since you have taken my challenge and decrypted
the secret message, I will even give you the
cryptogram-making source code to amaze your
friends!

import sys, string, random
cipher = list(string.letters[:26])
random.shuffle(cipher)
cipher = "".join(cipher)
cipher += cipher.upper()
map = {}
for plain, crypt in zip(string.letters, cipher):
map[plain] = crypt
for line in open(sys.argv[1]):
print "".join([map.get(ch,ch) for ch in line])[:-1]

--
Novell DeveloperNet Sysop #5

_
"Michal Wallace" <sabren at manifestation.com> wrote in message
news:mailman.1032989974.25321.python-list at python.org...
>
>
>
> Here's a python puzzle. Solve it and you win a prize. :)
>
>
>
> """
> Ha'f ahoy ad ayfa wdqr srxhekdpyr! H phmm zhby
> fhv odeajf dc cryy pys jdfahez ad ajy chrfa kyrfde
>
> Fheiy wdq jxby axgye ow ijxmmyezy xet tyirwkayt
> ajy fyirya oyffxzy, H phmm ybye zhby wdq ajy
> crhyetf!
> """
> hokdra fwf, farhez, rxetdo
> ihkjyr = mhfa(farhez.myaayrf[:26])
> rxetdo.fjqccmy(ihkjyr)
> ihkjyr = "".ldhe(ihkjyr)
> ihkjyr += ihkjyr.qkkyr()
> oxk = {}
> cdr kmxhe, irwka he uhk(farhez.myaayrf, ihkjyr):
>     oxk[kmxhe] = irwka
> cdr mhey he dkye(fwf.xrzb[1]):
>     krhea "".ldhe([oxk.zya(ij,ij) cdr ij he mhey])[:-1]
>
>
>
> Cheers,
>
> - Michal   http://www.sabren.net/   sabren at manifestation.com
> ------------------------------------------------------------
> Switch to Cornerhost!             http://www.cornerhost.com/
>  Low Priced, Reliable Blog Hosting, With a Human Touch. :)
> ------------------------------------------------------------
>
>

-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com       The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----

```