471,872 Members | 1,206 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,872 software developers and data experts.

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 1936
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
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.