Florian Gross wrote:
> Like this? (75 chars)
> 
>> l=*"a".."z";m=l.to_s;n=l.sort_by{rand}.to_s;$><<$<.read.tr(m,n);warn 
>> m+$/+n

Getting warmer, but look carefully at the map display.  This is the 
"forwards" map that produced the cryptogram, but what you really want to 
show is the "reverse" map that solves the cryptogram.

m=*"a".."z";n=m.sort{rand};$><<$<.read.tr(m.to_s,n.to_s);warn 
m.to_s+$/+m.sort_by{|i|n[i[0]-?a]}.to_s

-- 
Glenn Parker | glenn.parker-AT-comcast.net | <http://www.tetrafoil.com/>