Skip to content

Commit

Permalink
Problem 4 for pset 5 added
Browse files Browse the repository at this point in the history
  • Loading branch information
samarth1402 committed Jan 31, 2018
1 parent 0f1df70 commit 8b340b1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions week_5/pset_5/problem_4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Problem 4 - Decrypt a Story

# 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.


def decrypt_story():
encryptedStory = CiphertextMessage(get_story_string())
return encryptedStory.decrypt_message()

0 comments on commit 8b340b1

Please sign in to comment.