Skip to content

Problem Set 5 - Problem 4 #41

@tiagomestreteixeira

Description

@tiagomestreteixeira

Problem 4 - Decrypt a Story

For this problem, the graders will use our implementation of the Message, PlaintextMessage, and CiphertextMessageclasses, so don't worry if you did not get the previous parts correct.

Now that you have all the pieces to the puzzle, please use them to decode the file story.txt. The file ps6.py contains a helper function get_story_string() that returns the encrypted version of the story as a string. Create a CiphertextMessage object using the story string and use decrypt_message to return the appropriate shift value and unencrypted story string.

Paste your function decrypt_story() in the box below.


Task of #39

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions