Question: i need some help completing this With the attached file, attempting to decrypt the individual lines of ciphertext.Answering the following questions (5pts each) What were

i need some help completing this

With the attached file, attempting to decrypt the individual lines of ciphertext.Answering the following questions (5pts each)

  • What were the decryption results for each line?
  • Were we able to decrypt every line?
  • Which lines?
  • What might be a reason why these lines didn't decrypt?
  • Were there any lines which were partially decrypted?
  • If so, can we guess at the actual text?

 i need some help completing this With the attached file, attemptingto decrypt the individual lines of ciphertext.Answering the following questions (5pts each)Whatwere the decryption results for each line?Were we able to decrypt every

def railBreak(cipher Text) : wordDict = createWordDict( 'wordlist. txt" ) cipherLen = len(cipherText) maxGoodSoFar = 0 bestGuess = "No words found in dictionary" for i in range (1, cipherlen +1): words = railDecrypt(cipherText, i) goodCount = 0 for w in words : if w in wordDict: goodCount = goodCount + 1 if goodCount > maxGoodSoFar : maxGoodSoFar = goodCount bestGuess = " ".join(words) return bestGuess Listing 8.2 A brute force algorithm for breaking the rail fence cipher\f\f

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 Programming Questions!