Factorization decomposes an integer into prime factors. In RSA, the public modulus N is built as p × q, while p and q remain secret. Knowing them makes it possible to calculate ϕ(N) and derive the private exponent; without them, this calculation is considered hard. section 6.3.1
RSA uses hidden factorization through a short key-generation chain:
- Generate two large prime numbers, p and q. section 6.3.1
- Publish the modulus N = p × q and public exponent e. section 6.3.1
- Use the secret factors to calculate ϕ(N) and derive private exponent d. section 6.3.1
Why the factors matter
RSA encrypts a message by computing message^e modulo N and decrypts it with message^d modulo N. The public key reveals N, but recovering the private exponent depends on knowing its hidden prime factors. section 6.3.1
Figure 6.12 RSA encryption works by exponentiating a number (our message) with the public exponent e modulo the public modulus N = p × q. RSA decryption works by exponentiating the encrypted number with the private exponent d modulo the public modulus N.
Trace RSA's exponentiation steps while relating the public modulus to the secret factorization behind the private exponent. section 6.3.1


