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.

Dabar tu Joks skaičiuotuvas nenusistato, bet jo dalys yra skaičiuojamos. Pabandykite vieną žemiau arba įveskite savo.

Išlaikyti savo darbą

Nemokama paskyra prideda pastabas apie kiekvieną pamoką, įrašą apie tai, ką baigėte, savo išspręstas problemas vienoje vietoje ir mokytoją, kurį galite paklausti apie šį puslapį. Pati matematika yra atvira visiems, kurie yra ar nėra užsiregistravę.

Prisijungti Prisijungti

Čia naudojami simboliai

Bakstelėkite visus simbolius, kad būtų galima apibrėžti visą apibrėžimą, paveikslėlį ir ką reiškia kiekviena raidė.

Klausimai, kuriuos klausia žmonės

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.

Šio puslapio dalys pritaikytos nuo Judson, Abstract Algebra: Theory and Applications (GFDL 1.3). Čia yra įtikinamų ir iš naujo paaiškintų klaidų.

Daugiau informacijos Abstract Algebra