Modify the caesar cipher program you completed

Assignment Help Python Programming
Reference no: EM131461208

Assignment

In this project, you will be modifying the Caesar Cipher program you completed earlier in the semester. We will use multiple shift amounts in an attempt to make our "encryption" harder to crack and also make our program more general by reading the message from a file.

Caesar Cipher Encryption Review

The Caesar Cipher is simple way to "encrypt" alphabetic letters (aside: don't try encrypt anything important with the Caesar Cipher). All remaining punctuation symbols, numeric digits, or other characters (spaceing) remain unchanged.

Encrypting a message using the Caesar Cipher involves replacing each letter in a message with the letter k places further down the alphabet, wrapping around at the end of the alphabet when necessary. With k = 0, each letter is replaced by itself. With k = 20, each letter is shifted 20 places down the alphabet. To decode or decrypt the text you simply shift the encrypted letter in the opposite direction by k places and wrap around as necessary.

The letters in the Caesar Cipher alphabet start at 0 and continue through 25, with the letter "A" being 0 and "Z" being 25. If the user were to choose k = 3, the letter "A" (0) would be replaced by the letter "D" (3), while the letter "B" (1) would be replaced by the letter "E" (4). If a letter appears towards the end of the alphabet, the alphabet simply wraps around and starts again. So the letter "Z" (25) would be replaced by the letter "C" (25 + 3 = 28), which is 2 after wrapping around. The "wrap around" math is accomplished simply using the "modulo" operator in Python (%) which returns the remainder after integer division.

Attachment:- Advanced_Caesar_Cipher.pdf

Reference no: EM131461208

Questions Cloud

Define the principles of one of the quality programs : Apply the principles of one of the quality programs you have researched from your readings to a Middle Eastern organization of your choice.
What does getting the up hand mean : How do they relate to the class lectures? What are some cross-cultural differences in non-verbal communication seen in the video?
Means to change or is destined to fail : Apply the truth of Burke's statement to three of the following states in the 19th century: Britain, France, Germany, Russia, Austria-Hungary.
Identify critical implicational for supply chains operations : Develop a good understanding of the critical implications for supply chain operations in the Canada and implications of some recent developments
Modify the caesar cipher program you completed : In this project, you will be modifying the Caesar Cipher program you completed earlier in the semester.
What is the computed prices of its common stock : The Weatherfield Way Construction Company has common and preferred stock outstanding. What is the computed prices of its common stock?
Six months from now after the next coupon is paid : Find the bond's price today and six months from now after the next coupon is paid. What is the total rate of return on the bond?
What should you do with your investment : As a technical analyst, you have been charting a stock that you own. What should you do with your investment?
Define the strategies in terms of your growth plan : Your organization has made the transition into the global community and has been operting for one month.Discuss the two major risks of using international.

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd