CrackingCodes.Ch15 package

Submodules

CrackingCodes.Ch15.PracticeQuestions module

Chapter 15 Practice Questions

Answers Chapter 15 Practice Questions via Python code.

CrackingCodes.Ch15.PracticeQuestions.main()[source]

CrackingCodes.Ch15.affineHacker module

Affine Cipher Hacker

Implements a function that can hack an affine cipher encrypted message.

CrackingCodes.Ch15.affineHacker.SILENT_MODE

Specifies whether to print all key attempts.

Type:bool
CrackingCodes.Ch15.affineHacker.hackAffine(message: str)[source]

Hacks affine cipher encrypted messages

Brute-forces a given encrypted message by looping through all the keys, checking if the result is English, and prompting the user for confirmation of decryption.

Parameters:message – String with message to brute-force.
Returns:Prints out possible results and prompts user for confirmation. If confirmed, prints out and returns full decrypted message, otherwise returns None.
CrackingCodes.Ch15.affineHacker.main()[source]

Module contents