- #1
Yankel
- 395
- 0
Hello guys,
I need your help in understanding something about the RSA encryption.
You start with two primes, p and q, from which you get n and phi(n)
then you choose a number e such that it is larger than 1 but smaller than phi(n) and co-prime of phi(n)
then you use Euclid's algorithm to find d for the decryption process.
the public key is (e,n) and the private is (d,n)
What I want to know, is what is stopping the ones who want to break the encryption from calculating d just like the one who encrypted it did ?
all I see in Euclid's algorithm is the use of e and n, which are given as a public key. so what stops one from finding d, even when he doesn't have it initially ?
what am I missing here ?
I thought that the point was to give n, but to be able to do decryption only if you know p and q, when it's very hard to break n into p and q. but I can't see it coming in the algorithm.
thanks !
I need your help in understanding something about the RSA encryption.
You start with two primes, p and q, from which you get n and phi(n)
then you choose a number e such that it is larger than 1 but smaller than phi(n) and co-prime of phi(n)
then you use Euclid's algorithm to find d for the decryption process.
the public key is (e,n) and the private is (d,n)
What I want to know, is what is stopping the ones who want to break the encryption from calculating d just like the one who encrypted it did ?
all I see in Euclid's algorithm is the use of e and n, which are given as a public key. so what stops one from finding d, even when he doesn't have it initially ?
what am I missing here ?
I thought that the point was to give n, but to be able to do decryption only if you know p and q, when it's very hard to break n into p and q. but I can't see it coming in the algorithm.
thanks !