MUST be completed in PYTHON using object oriented programming. Cannot be procedure based You need to develop
Fantastic news! We've Found the answer you've been seeking!
Question:
MUST be completed in PYTHON using object oriented programming. Cannot be procedure based
Transcribed Image Text:
You need to develop a program that implements the Substitution, Playfair, Caesar, Transposition, Product, and RSA ciphers. The program prompts the user for a message to encrypt, then randomly applies one of the implemented encryption algorithms. The program contains different classes such as a Message class with two derived classes, plaintextMsg and ciphertextMsg. You may need to include more classes, methods, and attributes. The Message class contains attributes and methods that could be used to apply a cipher to a string, either to encrypt or to decrypt a message. The plaintextMsg class has attributes and methods to encrypt a message. The ciphertextMsg class contains a method used to decrypt a message. Once the encryption is performed your program needs to display the original message and the encrypted version of it. The program keeps asking the user for different messages to encrypt until the user inputs 'Stop. Once the user asks for STOP, the program display all the plaintext messages, the encrypted versions and the applied method. Important Notes: • Make sure your program follows proper OOP rules (pythonic) that you learnt in the course. Note that procedure-based programs are NOT accepted. • Please note that you never want to directly access attributes outside a class; thus, you need to define properties in order to work with attributes. Make sure you include proper exception handling mechanisms when required. • The program needs to include all the concepts learnt in the course (e.g., inheritance, operator overloading, exception handling, etc.). Names chosen for classes, methods, and variables should effectively convey the purpose and meaning of the named entity. The layout of your code should be readable and consistent. This means things like indentation, wrapping of long lines, the layout of parameter lists, etc. Code duplication should be avoided by factoring out common code into separate methods. You need to develop a program that implements the Substitution, Playfair, Caesar, Transposition, Product, and RSA ciphers. The program prompts the user for a message to encrypt, then randomly applies one of the implemented encryption algorithms. The program contains different classes such as a Message class with two derived classes, plaintextMsg and ciphertextMsg. You may need to include more classes, methods, and attributes. The Message class contains attributes and methods that could be used to apply a cipher to a string, either to encrypt or to decrypt a message. The plaintextMsg class has attributes and methods to encrypt a message. The ciphertextMsg class contains a method used to decrypt a message. Once the encryption is performed your program needs to display the original message and the encrypted version of it. The program keeps asking the user for different messages to encrypt until the user inputs 'Stop. Once the user asks for STOP, the program display all the plaintext messages, the encrypted versions and the applied method. Important Notes: • Make sure your program follows proper OOP rules (pythonic) that you learnt in the course. Note that procedure-based programs are NOT accepted. • Please note that you never want to directly access attributes outside a class; thus, you need to define properties in order to work with attributes. Make sure you include proper exception handling mechanisms when required. • The program needs to include all the concepts learnt in the course (e.g., inheritance, operator overloading, exception handling, etc.). Names chosen for classes, methods, and variables should effectively convey the purpose and meaning of the named entity. The layout of your code should be readable and consistent. This means things like indentation, wrapping of long lines, the layout of parameter lists, etc. Code duplication should be avoided by factoring out common code into separate methods.
Expert Answer:
Answer rating: 100% (QA)
PlayFairCipherpy keyinputEnter key keykeyreplace keykeyupper def matrixxyini... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Using python in programming essentials a local small business has hired you to write a payroll calculation program. The program only needs to calculate gross pay for an employee and display the...
-
You must use Object Oriented Programming to design this project. Write a reservation system for an airline flight. Assume the airplane has 10 rows with 4 seats in each row. Use a two dimensional...
-
Must be completed in PYTHON only
-
Bob drives off in Freds car mistakenly believing that it is his. Is this theft? Explain.
-
a. Perform four iterations, if possible, on each of the functions g defined in Exercise 1. Let p 0 = 1 and p n+1 = g(p n ), for n = 0, 1, 2, 3. b. Which function do you think gives the best...
-
Multiply or divide as indicated. 55.76 72
-
This problem looks at the trade-offs between purity measured by \(\mathrm{y}_{\mathrm{I}, \text { out }} / \mathrm{y}_{\text {sugar, out }}\) and sugar recovery in the liquid,...
-
The following stockholders equity accounts arranged alphabetically are in the ledger of Westin Corporation at December 31, 2014. Common Stock ($10 stated value) .............. $1,500,000 Paid-in...
-
Differentiate f(x) = In f(x) = ln( 2 +1
-
Paul and Justin Began their partnership on 1 July 2019 by contributing $320 000 and $240 000 respectively. Paul and Justin shared in the same proportions as capital contributed. Paul and Justin's...
-
12. The fastest growing sector of higher education in Texas is the University of Texas at Austin. O community colleges. four-year universities. Oprivate religious colleges and universities.
-
The CEO has a salary of $100,000 per year. At year 1, she was also awarded 10,000 options at the strike price of $50 per share. Each option allows her to buy one share of the company's stock. At the...
-
Draw the shear and moment diagram for the uniformly loaded beam. Sketch the deflected shape and find the inflection point. Consider C is pin and B is a roller support. A w = 6 kips/ft A A + y Problem...
-
Organizations today use information systems for several purposes. How will you use the internet and specific resources like SBA.GOV & SCORE.ORG as well as websites devoted to your type of business?...
-
Execute: Fetch: 3. Store AC to device 6. Execute G Memory 300 301 302 N 940 3005 5940 7006 volo Memory 300 301 302 3005 5940 7006 940 000 Memory 300 301 302 3005 5940 7006 940 00/2 CPU Registers PC...
-
AT , Inc., reported a net income of $ 9 5 0 million for the most recent year. The firm had a $ 1 5 0 million CCA tax shield, $ 3 0 0 million in capital expenditures, and no interest expenses. Working...
-
The Strahler Stream Order System ranks streams based on the number of tributaries that have merged. It is a top-down system where rivers of the first order are the headwaters (aka outermost...
-
Floras Fabulous Fountains (FFF) top product is its Model A. Using the information given, draw the product structure tree for the ModelA. Usage Lead Immediate per Time Beginning Parent Parent (weeks)...
-
The BackPack Company produces a line of backpacks. The manager, Jill Nicholas, is interested in using a level aggregate plan. Inventories and back orders will be used to handle demand fluctuations....
-
Raquels Landscaping Company has contracted for several landscaping jobs. Each job requires preparing the areas (identifying the locations and types of plants, preparing the soil, etc.) and then...
-
Highpoint Company is evaluating five different capital expenditure proposals. The companys cutoff rate for net present value analyses is 12%. A 10% salvage value is expected from each of the...
-
Landover Amusement Park is considering the construction of a new facility to house a curved, multistory movie screen. The facility will cost \($400,000\) and be useful for 10 years, with no salvage...
-
Tate Company is considering a proposal to acquire new equipment for its manufacturing division. The equipment will cost \($192,000,\) be useful for four years, and have a \($12,000\) salvage value....
Study smarter with the SolutionInn App