Question: (python) need help with function 1. createTable(phrase) -- This function creates and returns a 5x5 ciphertable of 25 unique characters from a key or passphrase.

(python)

(python) need help with function 1. createTable(phrase) -- This function creates and

need help with function

1. createTable(phrase) -- This function creates and returns a 5x5 ciphertable of 25 unique characters from a key or passphrase. All characters included in this ciphertable should be lowercase. Note that the English alphabet contains 26 letters but the ciphertable can only store 25. For the purpose of this exercise, we'll pretend that the letter 'Q' doesn't exist. Consider the following example for creating the ciphertable: a. The passphrase "i am entering a pass phrase" is provided to the function. b. All spaces, punctuation, and Qs are removed from the passphrase to yield "iamenteringapassphrase". c. All duplicate letters are removed from the passphrase to yield "iamentrgpsh". d. All non-Q letters not already included in the passphrase are appended to the end to yield "iamentrgpshbcdfjklouvwxyz". e. The 25 characters in this final passphrase are transferred row-by-row into a 5x5 table, encoded as a list of lists: [['i' , 'a', 'm' , 'e' , 'n'], ['t', 'r', 'g', 'p', 's'], ['h', 'b' , 'c','d', 'f'], ['j', 'k', 'T, 'o' , 'u'], ['v' , 'w', 'x', 'y' , 'z'] ]. o Hint: Some of the code in our previous encryption example can be reused here! i am entering a pass phrase iamenteringapassphrase i am en trgps h|bc|df jkou vw x y z iamentrgpsh iamentrgpshbcdfjklouvwxyz

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!