07.07.2023 Views

Implementing-cryptography-using-python

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER

4

Cryptographic Math

and Frequency Analysis

By now, you have a basic understanding of historical ciphers and their cryptanalysis

using Python. In this chapter, you’ll turn your attention to the mathematics

that is essential to understanding cryptography through the remainder of this

book. This chapter introduces basic group theory and the Chinese remainder

theorem, shows how to solve systems of linear equations, and gives a more

in-depth look at modular arithmetic. You’ll learn the proper importance of

secure pseudorandom number generators and their use in cryptography. This

chapter is the basis for the remainder of this book as you explore public-key

cryptography. Finally, you’ll start to construct a frequency analysis (FA) module

that has a wide range of cryptanalysis functions. Through this chapter, you’ll

gain cryptographic knowledge as you do the following:

■■

Gain an understanding of modular arithmetic

■■

Understand the importance of the greatest common divisor (GCD)

■■

Gain an understanding of group theory

■■

Gain an understanding of pseudorandom numbers

■■

Create a Python script for frequency analysis

Implementing Cryptography Using Python®, First Edition. Shannon W. Bray.

© 2020 John Wiley & Sons, Inc. Published 2020 by John Wiley & Sons, Inc.

95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!