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 program to determine the coefficients of expanded

Write a program to determine the coefficients of expanded form of (aX+bY+c)n. Every line in bold is questions to ask whoever runs the program to enter values or commands (y or n) at the console.

  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.

  What is complexity in asymptotic notation of your solution

Write a program in Python to draw the following figure: What is the complexity in asymptotic notation of your solution? Return the "centered" average of an array of ints, which we'll say is the mean average of the values.

  Code a console-based program in python

CP1404/CP5632 2016 SP2/22/52 Assignment 1 - Shopping List 1.0. You are to plan and then code a console-based program in Python 3, as described in the following information and sample output. This assignment will help you build skills using selectio..

  How many of each package should be made to minimize cost

Each Bronze package has 1 pen, each Silver package has 5 pens, and each Gold package has 2 pens. How many of each package should be made to minimize their cost? What is the minimum cost?

  How to step through and process the elements of a list

Programming in Python CS21A- Learn how to find high and low values of a list. Learn how to step through and process the elements of a list. Learn how to pass lists as arguments to a function. Learn how to wr..

  The number of lowercase letters in the file

The number of uppercase letters in the file The number of lowercase letters in the file

  Write a program using the ''requetinteger''

using python/jython programming write a program using the 'requetInteger' function that will ask the user to type a value that will draw a line from one point on a picture to another. I don't need specific help just a gerneral idea.

  Write a program to receive a series of numbers

Write a program to receive a series of numbers (including decimal) from the user until enter key is pressed. Process the input data and display number count, sum and average. Use proper data type and format.

  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.

  Given the strings s1 and s2 that are of the same length

Given the strings s1 and s2 that are of the same length, create a new string consisting of the first character of s1 followed by the first character of s2, followed by the second character of s1, followed by the second character of s2, and so on (in ..

  Write a program to convert an input value from base

Write a program to convert an input value from base 10 to a user selectable base between 2 and 16.

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