[Tutor] [TUTOR]Code Deciphering
Calle
Calle_Python at live.se
Thu Dec 15 23:37:49 CET 2011
-----Ursprungligt meddelande-----
From: Robert Sjoblom
Sent: Thursday, December 15, 2011 10:34 PM
To: Calle
Cc: tutor at python.org
Subject: Re: [Tutor] [TUTOR]Code Deciphering
> I was wondering, how do you use Python to decipher codes? It feels like it
> should be pretty simple, but I haven't found any tutorials about it yet.
What kind of codes? Or do you mean ciphers? Generally speaking, a code
represent letters or numbers in transmitting a message. In other
words, a code deals with phrases and sentences or whole words. Example
"steal the cabbage at dawn" could mean "kill the king on wednesday".
A cipher deals with letters. It is a message written in letters in a
predetermined code. This means that a cipher is a system of
communication that uses letters instead of phrases. Examples being the
standard Caesar cipher where "APPLE" might be written "BQQMB" (ie,
shifted one letter to the right).
--
best regards,
Robert S.
--------------------------------------------------
Hi!
Sorry, I meant ciphers. How would a basic script for solving
move-one-step-to-the-right ciphers look like?
Have a nice day
//
Calle
More information about the Tutor
mailing list