Problem
Given , where and are large prime numbers, and an integer such that is coprime with (Euler’s totient function), solve the congruence:
Theorem
Under the conditions of the RSA problem, the function is a bijection and therefore has a unique solution. To find in reasonable time , it is necessary to know the Euler’s totient or, equivalently, the factorization of . Otherwise, if and are sufficiently large, solving the RSA problem in reasonable time is infeasible.
Key steps:
RSA Cryptosystem
Alice wants to send a message to Bob, represented as a natural number .
-
Bob generates two prime numbers and , then computes and .
-
Bob chooses an integer such that , and then computes such that . Bob’s public key is the pair , which he sends to Alice.
-
Alice computes the ciphertext:
and sends to Bob.
-
To decrypt, Bob uses his private key and computes:
The public exponent is often constant and equals . This does not affect the cipher security because it as well as private key depends only on the modulus .