469,616 Members | 1,792 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,616 developers. It's quick & easy.

Cipher help required in python

Algorithm 1:

Write python programs to translate the following algorithm so that the computer can execute it.

Algorithm for ceaser cipher.

Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ<br>
Cipher: DEFGHIJKLMNOPQRSTUVWXYZABC

Example of Ceaser Cipher Algorithm:

Input:
String = the quick brown fox jumps over the lazy dog

Output:
WKH TXLFN EURZQ IRA MXPSV RYHU WKH ODCB GRJ
Aug 3 '07 #1
2 1878
bvdet
2,851 Expert Mod 2GB
Algorithm 1:

Write python programs to translate the following algorithm so that the computer can execute it.

Algorithm for ceaser cipher.

Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ<br>
Cipher: DEFGHIJKLMNOPQRSTUVWXYZABC

Example of Ceaser Cipher Algorithm:

Input:
String = the quick brown fox jumps over the lazy dog

Output:
WKH TXLFN EURZQ IRA MXPSV RYHU WKH ODCB GRJ
Look at string.maketrans() and string.translate().
Aug 3 '07 #2
Look at string.maketrans() and string.translate().
Hey i know what cipher is .... anyways thanks for taht
Aug 3 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Michael Sparks | last post: by
4 posts views Thread by Carl Harris | last post: by
7 posts views Thread by Piotr Turkowski | last post: by
9 posts views Thread by Piotr Turkowski | last post: by
2 posts views Thread by Julio C. Hernandez Castro | last post: by
thatos
2 posts views Thread by thatos | last post: by
12 posts views Thread by betabrain.honshu | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.