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.

이제 너 계산기는 이것을 해결하지 않지만, 그 조각은 계산 가능합니다. 아래의 하나를 시도하거나 자신의 것을 입력하십시오.

자신의 작업을 유지

무료 계정은 모든 수업에 노트를 추가, 당신이 완료 한 기록, 당신이 해결 한 문제를 한 곳에, 그리고 당신이이 페이지에 대해 물어 수업 지도자. 수학 자체는 모두에게 열려 있습니다, 로그인 여부.

가입하기 로그인

여기서 사용된 기호

기호를 탭하면 전체 정의, 이미지 및 각 문자의 의미를 확인할 수 있습니다.

사람들이 묻는 질문

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.

이 페이지의 일부는 다음에서 변경되었습니다. Judson, Abstract Algebra: Theory and Applications (GFDL 1.3). 여기서 압축하고 다시 설명; 오류는 우리의.

에 더 Abstract Algebra