Problem 5 – Using Python for cryptography
Cryptography is what we use to code and decode messages. We used a simple Caesar cipher in Chapter 9, Understanding Input and Output to Design a Solution Algorithm. For this problem, we're going to use some of the packages available in Python to encrypt and decode information.
Note that for this particular scenario, we'll use the straightforward analysis from using the four elements of the computational thinking process. While we don't always follow them exactly, this particular problem lends itself to a fairly straightforward use.
Defining the problem (cryptography)
You are working on a classified project and need to encrypt your information to maintain its safety.
Recognizing the pattern (cryptography)
Python has a cryptography package that can be installed, much like when we installed other libraries, such as Pandas and NumPy. In our problem, one of the main things we need to know is that we may need...