Lightly amended from https://chatgpt.com/share/68724162-ffd8-800d-99dc-893959fbb945
Step-by-step derivation of the RSA property from Euler’s Theorem, assuming:
- , where are distinct primes
- for some integer
- (i.e. is invertible mod )
We aim to prove:
🔶 Step 1: Euler’s Theorem
For any integer aa such that gcd(a,n)=1\gcd(a, n) = 1,
🔶 Step 2: Use the key equation ed=1+kϕ(n)ed = 1 + k\phi(n)
Suppose Then:
🔶 Step 3: Apply Euler’s Theorem to mϕ(n)m^{\phi(n)}
Since gcd(m,n)=1\gcd(m, n) = 1, Euler’s theorem applies:
🔶 Step 4: Plug back in
Now we substitute:
✅ Therefore:
This proves the RSA encryption/decryption identity, assuming , and that .
🔍 Notes:
- Why does matter?
- Because Euler’s Theorem only holds when the base is invertible mod nn.
- What if mm is not coprime to nn?
- Technically, the identity can fail (e.g., if ). For practical deployment of RSA, padding schemes ensure this doesn’t happen.
- this is fixed via PKCS standards like PKCS 11 - Wikipedia!
- Alternative view via CRT (Chinese Remainder Theorem):
- You can also prove this result by reducing mod p and mod q separately and applying Fermat’s Little Theorem.