Cryptography actually has quite a bit of basis from mathematics. Different types of mathematics are used in order to understand and decrypt particular ciphers and this page is to guide users through the process of solving for different types of ciphers. This page will explain a few methods involved with frequency analysis along with a couple of ciphers. This page will discuss, specifically, affine ciphers and additive ciphers (otherwise known as Shift ciphers).
Frequency analysis (with respect to cryptography) involves analyzing the frequency of letter distribution within coded messages. Many of the basic types of ciphers can be cracked using the method of Frequency analysis. It is used in that it analyzes the frequency certain letters are appearing in a coded message and determines which original letter is being represented by the coded letter. For an example, look at the following message below:
ymj rtxy nrutwyfsy ymnsl yt wjrjrgjw bmjs btwpnsl bnym hwduytlwfumd fsi kwjvzjshd fsfqdxnx nx yt wjrjrgjw bmnhm qjyyjw nx zxji rtxy tkyjs.
One can count up the number of each letter from this message. After doing so, we see that j is the most common letter in the message. We can reference the graph below to help us out. This graph shows the frequency of each letter taken from a random sample of 40,000 words. Using this graph can help use crack the code and decrypt the message that is written above.