[Tutor] Re: sorting by values in dict

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Fri Nov 14 13:44:47 EST 2003


> > > Mail address in header catches spam. Real contact info (decode with
> > > rot13): cebwrpg5 at jnanqbb.ay. Fcnz-serr! Cyrnfr qb abg hfr va choyvp
> > > cbfgf. V ernq gur yvfg, fb gurer'f ab arrq gb PP.
> >
> > What is this? So a robot can't read this, right? But how do you
> > decode it?
>
> Rot13 is a very simple encryption method where you rotate each letter 13
> steps alphabetically (a 13-step Caesar cipher).  Example:
>
> A -> N
> C -> P
> N -> A
> Q -> D
>
> Note that rot13(rot13(x)) == x.

By the way, Python has a built-in rot13 encoder and decoder:

###
>>> "hello world".encode("rot13")
'uryyb jbeyq'
###


Hope this helps!




More information about the Tutor mailing list