19 September 2011

Python script to decipher Caesar ciphers

    Caesar cipher is a simple, widely used encryption technique. It is a kind of substitution cipher in which each letter in the plain-message is replaced by a letter some fixed number positions down the alphabet.

Caesar3.svg
Read more - http://en.wikipedia.org/wiki/Caesar_cipher

Example 

Today, I prepared a simple python program to do this for solving a puzzle from Kryptos - an online treasure hunt conducted as a part of MEC EXCEL 2011.


Then I added some more features to it like handling both uppercase and lowercase & ignoring symbols. Here's it.
Sample Output
Note: This program can be used for both ciphering and deciphering..!

2 comments:

Anonymous said...

Interesting code :)

Jithu Sunny said...

:)