edited by
1,063 views
2 votes
2 votes

In RSA Algorithm, we have public key(e,n) and private key(d,n).


Sender side we encrypt plain text P as an integer between 0 and n-1 as follows:

$P^{e}modn$

and send it.

At receiver side, we do the following:

$(P^{e}modn)^{d}modn = P^{ed}modn$

$P^{ed}modn= P$

But according to Euler's Theorem:
The following equation holds if 'a' and 'n' are coprimes:

$a^{\phi (n)t+1)}modn= a$

So, what I am confused about is that while encrypting the message P we are taking it as as integer between 0 and n-1. So, the P may not be coprime to n. Then how does the algorithm work?

edited by

Please log in or register to answer this question.

Related questions

2 votes
2 votes
2 answers
2
piya asked Jul 23, 2018
12,271 views
In an RSA system, the public key of given user is e = 31 and n = 3599. The private key of user will be ________
2 votes
2 votes
2 answers
4
dragonball asked Jan 4, 2018
1,949 views
Plz tell me how to solve this .I am feeling problem o calculate 10 = p^5 mod 35 . How to solve this type of question quickly.