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.

Sada ti Nema kalkulatora koji bi riješio ovaj problem, ali njegovi dijelovi se mogu izračunati. Pokušajte jedan od gore navedenih ili upišite svoj.

Neka tvoja radi.

Besplatni račun dodaje bilješke na svaku lekciju, zapis onoga što ste završili, vaše riješene probleme na jednom mjestu, i tutora kojeg možete pitati o ovoj stranici. Sama matematika je otvorena za svakoga, prijavljenog ili ne.

Prijavite se Prijava

Simboli korišteni ovdje

Dodirnite bilo koji simbol za potpunu definiciju, sliku i što svako slovo u njemu znači.

Pitanja koja ljudi postavljaju

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.

Dio ove stranice je prilagođen sa Judson, Abstract Algebra: Theory and Applications (GFDL 1.3). U ovom slučaju, greške su naše.

Više u Abstract Algebra