Question: in python Part II: The Up/Down Cipher: Decryption Algorithm (20 points) Write a function updown.decrypt that takes the following arguments, in this order: encrypted: ciphertext

 in python Part II: The Up/Down Cipher: Decryption Algorithm (20 points)

in python

Part II: The Up/Down Cipher: Decryption Algorithm (20 points) Write a function updown.decrypt that takes the following arguments, in this order: encrypted: ciphertext that was generated from plaintext by using the up-down cipher described in Part I . num_rows: the number of rows that was used to encrypt the original plaintext string Your function should take the encrypted string. decrypt it by applying up-down encryption backwards, then return the (decrypted) original plaintext. Note: num.rows must be greater than zero. In the case that num.rows 0, your function should return encrypted. In the case that encrypted is an empty string. your function should return the value None. Examples: Return Value Function Call updown.decrypt ('AMERICA 7) updown-decrypt (, soo&TRK %OBUVNYN 1 , , AMERICA' 4) | , STONYBROOKUN IV, CHICKENWINGS Remember: CodeLoad has additional tests for you to try! Upload your code there and see how your code matches up against harder tests

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!