By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Cipher help required in python

P: 2
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
Share this Question
Share on Google+
2 Replies


bvdet
Expert Mod 2.5K+
P: 2,851
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

P: 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.