Question: (15 pts) Read section 3.5 in the book (Substitution Cipher) and look especially at the code in Listing 3.5. Try it out on Python IDLE

 (15 pts) Read section 3.5 in the book (Substitution Cipher) andlook especially at the code in Listing 3.5. Try it out on

(15 pts) Read section 3.5 in the book (Substitution Cipher) and look especially at the code in Listing 3.5. Try it out on Python IDLE then answer the following questions on the back of this page. Tell me what happens if you run the function in Listing 3.5 as substitutionEncrypt (p, k), where 3. (5 pts) p-"python" and k-"nnopqrstuvwxyz abcdefghjkl ". (You may want to copy and paste this into your Python IDLE run- also note that there is a space character at the end of the string k). Explain why you got the result that you did. The explanation is worth 4 out of the 5 points. a. b. (5 pts) p-"The spy wants to come in from the cold" and k = "jamesbond". Explain why you got the result that you did. The explanation is worth 4 out of the 5 points. c. (5 pts) Is this encryption symmetrical? Explain your answer with a good example. Page 2 of 2 CS8 Winter 18 MATNI

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!