Question: Assignment #3: One-Time Pad Cipher Learning Objectives: By the end of this assignment you should be able to: - Use For and While Loops within

 Assignment #3: One-Time Pad Cipher Learning Objectives: By the end of

this assignment you should be able to: - Use For and While

Loops within your program to accomplish tasks Decide which Loop type you

need in a given situation - Use Lists (and their corresponding built-in

Assignment #3: One-Time Pad Cipher Learning Objectives: By the end of this assignment you should be able to: - Use For and While Loops within your program to accomplish tasks Decide which Loop type you need in a given situation - Use Lists (and their corresponding built-in functionality) to solve a problem - Take a written description and create the corresponding Python code to solve that problem - Design a small Python program - Get a value from the user - Using the modulus in calculations One-Time Pad Cipher: The One-time pad cipher is a simple cipher algorithm. This encryption technique has existed for many years. Originally for this cipher, the two communicating parties were each issued a matching pad of paper with the secret keys already provided. (Hence why this is known as the one-time pad cipher) The algorithm begins by deciding the translation between letters and numbers (eg , A = 1, B-2 and so forth) and translating into the corresponding numbers. Next, a pre-decided key sequence with the same length is added to the message and a mod 26 is applied to convert back to letters. The output of this is an encrypted message For this problem, convert the letters to numbers using the following conversion: A B C D E F G H K L MN O P Q R S T U V W X Y z 2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 In other words: A 1 D=4 X 24 Y = 25

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!