Why is RSA Encryption/Decryption secure?
Let’s analyze security from different perspectives:
What Does an Outsider See?
An outsider observing an RSA-encrypted message has access to:
-
The public key:
-
The ciphertext:
To decrypt the message and retrieve m, the outsider would need the private key . However:
Why can't the outsider calculate ?
To find , the outsider must compute the modular inverse of , where . This requires knowledge of , which can only be calculated if it can factorize into
However, due to Integer Factorization Problem, it is very hard to factorize ! hence, cannot calculate private key
Can Alice Learn Bob’s Private Value?
Suppose Alice is an authorized sender and knows:
-
Bob’s public key: (e,n).
-
Her own plaintext message: m.
-
The ciphertext she sent:
Even with this information:
Similarly, Alice cannot derive Bob’s private key , as she would need to factorize to compute , which is very hard due to Integer Factorization Problem.