Fix English and typo in question title

# How does recieverthe receiver compute the private key when using RSA?

I understand the public key and the private key isare generated at the same time. The encryptionpayload is doneencrypted with the public key. Sender Alice sends public key $$[n,e]$$ and cipher text $$C$$ to Bob.

Now is Bob recomputing the private key $$d$$?

If Bob is computing the private key $$d$$, can a "Man in the Middle" who gets the public key and cipher text can also do compute the same?

Or is there a scenario thatin which both Alice and Bob knowsknow the value of $$p$$ and $$q$$?

I am confused. Please help me understand this in a scenario assuming Alice and Bob are located in two different geographical locations.

deleted 30 characters in body; edited title
e-sushi
• 17.2k
• 12
• 73
• 212

# RSA Cryptosystem- How does reciever compute private key when using RSA?

I understandthe public key and the private key is generated at the same time. The encryption is done with public key. Sender Alice sends public key [n,e]$$[n,e]$$ and cipher text C$$C$$ to Bob. Now

Now is Bob recomputing the private key "d"$$d$$? If

If Bob is computing the private key d$$d$$, a "Man in the Middle" who gets the public key and cipher text can also do compute the same?

Or is there a scenario that both Alice and Bob knows the value of p$$p$$ and q$$q$$?

I am confused. Please help explainingme understand this in a scenario assuming Alice and Bob are located in two different geographical locations.