maths.free › Abstract Algebra › Introduction to Cryptography › Private Key Cryptography
Private Key Cryptography
In single or private key cryptosystems the same key is used for both encrypting and decrypting messages. To encrypt a plaintext message, we apply to the message some function which is kept secret, say f.
Private Key Cryptography
In single or private key cryptosystems the same key is used for both encrypting and decrypting messages. To encrypt a plaintext message, we apply to the message some function which is kept secret, say \(f\). This function will yield an encrypted message. Given the encrypted form of the message, we can recover the original message by applying the inverse transformation \(f^{-1}\). The transformation \(f\) must be relatively easy to compute, as must \(f^{-1}\); however, \(f\) must be extremely difficult to guess from available examples of coded messages.
Example
One of the first and most famous private key cryptosystems was the shift code used by Julius Caesar.
We first digitize the alphabet by letting \(\text{A} = 00, \text{B} = 01, \ldots, \text{Z} = 25\).
The encoding function will be
\[\begin{aligned}\end{aligned}\]
that is, \(A \mapsto D, B \mapsto E, \ldots, Z \mapsto C\).
The decoding function is then
\[\begin{aligned}\end{aligned}\].
Suppose we receive the encoded message DOJHEUD. To decode this message,
we first digitize it:
\[\begin{aligned}\end{aligned}\].
Next we apply the inverse transformation to get
\[\begin{aligned}\end{aligned}\],
or ALGEBRA. Notice here that there is nothing special about either of the numbers \(3\) or \(26\).
We could have used a larger alphabet or a different shift.
Cryptanalysis is concerned with deciphering a received or intercepted message. Methods from probability and statistics are great aids in deciphering an intercepted message; for example, the frequency analysis of the characters appearing in the intercepted message often makes its decryption possible.
Example
Suppose we receive a message that we know was encrypted by using a shift transformation on single letters of the \(26\)-letter alphabet. To find out exactly what the shift transformation was, we must compute \(b\) in the equation \(f(p) = p + b \bmod 26\). We can do this using frequency analysis. The letter \(\text{E} = 04\) is the most commonly occurring letter in the English language. Suppose that \(\text{S} = 18\) is the most commonly occurring letter in the ciphertext. Then we have good reason to suspect that \(18 = 4 + b \bmod 26\), or \(b= 14\). Therefore, the most likely encrypting function is \[\begin{aligned}\end{aligned}\]. The corresponding decrypting function is \[\begin{aligned}\end{aligned}\]. It is now easy to determine whether or not our guess is correct.
Condensed: the full section is in Judson, Abstract Algebra: Theory and Applications.
Haddaad Ma jiro xisaabis oo ku nool midkan, laakiin qaybaha ka mid ah waa la xisaabi karaa. Ku raaxayso mid ka hooseeya, ama ku qor adiga kuu gaar ah.
A xisaab bilaash ah oo ku daray qoraalada waxbarasho kasta, diiwaanka waxa aad dhamaatay, dhibaatooyinka aad xal u tahay meel kaliya, iyo macallinka aad weydiisan kartaa oo ku saabsan bogga. Xisaabta oo keliya waa u furan yahay qof kasta, la diiwaan geliyey ama aan.
Ku soo biir Ku soo galCalaamadaha la isticmaalay halkan
Taab calaamad kasta oo loogu talagalay qeexidda buuxda, sawir, iyo waxa xarfaha oo dhan ka mid ah ka dhigan tahay.
Su'aalaha dadku waydiiyaan
What is a group, in plain words?
A set with one operation that is associative, has an identity, and lets every element be undone. Symmetries of any object form a group. That is where the idea came from.
What is the difference between a ring and a field?
A ring has addition and multiplication that behave like the integers (you cannot always divide); a field is a ring where every non-zero element has a reciprocal, like the rationals or the reals.
Qaybaha ee boggaan waxaa la beddelay ka Judson, Abstract Algebra: Theory and Applications (GFDL 1.3). Condensed iyo dib-oo halkan lagu sharaxay; khaladaadka waa inoo.
In ka badan Abstract Algebra
GroupsSubgroups, cosets and Lagrange's theoremCyclic groups and permutation groupsHomomorphisms, normal subgroups and quotient groupsRings and fieldsGalois theory: why the quintic has no formula