CrackingCodes.Ch15 package¶
Submodules¶
CrackingCodes.Ch15.PracticeQuestions module¶
Chapter 15 Practice Questions
Answers Chapter 15 Practice Questions via Python code.
CrackingCodes.Ch15.affineHacker module¶
Affine Cipher Hacker
Implements a function that can hack an affine cipher encrypted message.
Note
- https://www.nostarch.com/crackingcodes/ (BSD Licensed)
-
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.