-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProblem4.py
More file actions
17 lines (13 loc) · 783 Bytes
/
Copy pathProblem4.py
File metadata and controls
17 lines (13 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#Problem 4 - Decrypt a Story
#For this problem, the graders will use our implementation of the Message, PlaintextMessage, and CiphertextMessage
# classes, 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.
def decrypt_story():
str=get_story_string()
decrypt=CiphertextMessage(str)
k=decrypt.decrypt_message()
return k