MHB RSA Explained: Intro for Layman, Number Theory Basics

  • Thread starter Thread starter matqkks
  • Start date Start date
  • Tags Tags
    Layman
AI Thread Summary
The RSA algorithm encrypts numbers using a public key and decrypts them with a private key, relying on the difficulty of factoring the product of two large prime numbers, n = pq. The encryption process is represented as the encrypted number being equal to m raised to the power of the public key modulo n. Decryption reverses this process using the private key. Resources like Wikipedia provide a foundational understanding, detailing how to generate the public and private key pair from primes p and q. The discussion emphasizes the importance of modular arithmetic and suggests exploring the Chinese remainder theorem for further insight.
matqkks
Messages
280
Reaction score
5
I am looking for any resources which explain the RSA algorithm for the layman. I have found a number of sources but they all tend to end with a morass of technical details. This is for a first year undergraduate course in number theory who have covered some basic work on modular arithmetic.
 
Mathematics news on Phys.org
matqkks said:
I am looking for any resources which explain the RSA algorithm for the layman. I have found a number of sources but they all tend to end with a morass of technical details. This is for a first year undergraduate course in number theory who have covered some basic work on modular arithmetic.

Hi matqkks,

It seems to me the explanation here is about as simple as it gets.Long story short, we encrypt numbers $m$ with the public key as:
$$\text{encrypted number} = m^{\text{public key}} \bmod n$$
and we decrypt them with the private key:
$$m = \text{encrypted number}^{\text{private key}} \bmod n$$
where $n = pq$ is the product of 2 large prime numbers.The schema hinges on the fact that it's very difficult to find $p$ and $q$ given $n$.
The article explains how to get a $(\text{public key}, \text{private key})$ pair given $p$ and $q$.
It also means that anyone can encrypt a message, but only someone with access to the $\text{private key}$ can decrypt a message.
 
I agree completely with the previous post. You should read the Wikipedia article. Using the notation there, given an integer x, the encoded x is $x^e\text{ mod}(n)$ The decoding $f$ is such that $ef\equiv1\text{ mod}(\phi(n))$ Then for $x$ prime to $n$, $x^{ef}\equiv x\text{ mod}(n)$. However, it should still work for x's not prime to n. You might try your hand at this. Hint: the Chinese remainder theorem is helpful.
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Back
Top