Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Part VI: The Double Cipher: Decryption (20 points) Write a function de.decrypt that takes the following arguments, in this order: 1. encrypted: an encrypted

image text in transcribed
image text in transcribedPython
Part VI: The Double Cipher: Decryption (20 points) Write a function de.decrypt that takes the following arguments, in this order: 1. encrypted: an encrypted message to be decrypted 2. filename: a file that contains the 6 x 6 encryption key Your function should take the encrypted string and then decrypt it by applying the mechanism explained in part V backwards: (I) map encrypted letters to row/column pairs; (2) separate the row/column pairs into a list of single numbers; (3) divide the list of numbers in half and overlay the halves to recover the original plaintext row/column pairs; and (4) map the plaintext row/column pairs to the unencrypted plaintext characters. In the end, return the decrypted message. Examples Function Call dc.decrypt'J418FR9939', 'keyl.txt') de.decrypt GFOOKXEFOBTK3','keyl.txt' dc decrypt ' J6GI6SJROSEY', 'key2.txt.') dc.decryptPBW98AY8E77AROT9SN93J3, key3.txt Return Value STONYBROOK' SUFFOLKCOUNTY" 'CSE101 ISEASY PASSWORD8 9ASHD8 91NE21D

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions