I wanna help for this project

Anonymous
timer Asked: Dec 24th, 2017

Question description

Task Description: In this problem set, you are required to create a program that automatically Encrypt Plaintext message using a combination of Keyword mixed alphabet, Transposition, Playfair, and Caesar ciphers. A fully functional program should repeatedly read Plaintext message line by line from a text file and display the encryption results on the screen. The program you create for this task should perform the encryption steps without any user intervention. Ideally, your program should read from the text file and output on the screen. Each single line from the text file contains a Plaintext message, and your program should encrypt it and display the encryption result.

Step 1: Start by using the Keyword mixed alphabet cipher: In this step, a keyword mixed alphabet can be created by prompting the user for the keyword, removing repeated letters in the keyword, and then writing the remaining letters of the alphabet in the usual order. This step will generate Ciphertext-2.

Example: Here’s an example execution. Let’s say I have a file called mixed test.txt which has the following contents:

Plaintext: This file has some WORDS in it

A sample run of your program with this test file would produce the following output. Note that capitalizations are kept as-is in the encrypted text.

Please enter a keyword for the mixed cipher: Motherboard Plaintext: a b c d e f g h i j k l m n o p q r s t u v w x y z Ciphertext: m o t h e r b a d c f g i j k l n p q s u v w x y z

Ciphertext-1: Sadq rdge amq qkie WKPHQ dj ds

Step 2: Next, use the Transposition cipher: Based on the Ciphertext-1 generated from the plaintext in the Step1. Next, use the Transposition cipher. Given the Ciphertext-1, the user should determine the key value being used and the program automatically generate the corresponding Ciphertext message. This step will generate Ciphertext-2.

Example: Let’s say I have a ciphertext-1 generated in step 1. Ciphertext-1: Sadq rdge amq qkie WKPHQ dj ds Please enter a key for the Transposition cipher: {1,2,3,4} 1 2 3 4 S a d q r d g e a m q q k i e W K P H Q d j d s Ciphertext-2: SrakKd admiPj dgqeHd qeqWQs Note that capitalizations are kept as-is in the encrypted text.

Step 3: Next, use the Playfair cipher: Based on the Ciphertext-2 generated from the plaintext in the Step2, use the Playfair cipher to encrypt the Ciphertext-2. Playfair cipher can be created by prompting the user for the keyword, and your program should encrypt the Ciphertext-2 using the entered keyword. This step will generate Ciphertext-3.

Step 4: Finally, use the Caesar cipher: Based on the Ciphertext-3 generated from the plaintext in the Step3. In this step, we will use a variant of the standard Caesar cipher where the “@” Symbol is included in the shifts: “@” symbol is treated as the letter after “z”, For example; with a key of right shift 2, “y” would become”@“, “z” would become “a”, and ”@” would become “b”. Use the Caesar cipher by prompting the user for the shift value, this step will generate the Ciphertext-4


Tutor Answer

(Top Tutor) Studypool Tutor
School: UIUC
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors