0

An exercise asks me to encrypt with RSA a message m=10. The public key e=11 and the private key d=11. The modulo is 60.

So i tried first to cipher this way: C=10^11 mod 60=40

So 40 is my ciphertext.

Then the exercise asks me to decrypt it.

So I did M=40^11 mod 60

But the result is 40 again when it should be 10.

How is it possible? Where am I wrong?

Jhon
  • 11

1 Answers1

4

$60$ is not the modulus $-$ it can't be, because it is not a product of two primes.

We see that the product of the public key and the private key is $121$, so each is the inverse of the other modulo $60$; this suggests that $60$ is $\varphi(n)$, where $n$ is the modulus.

To find the modulus $n=pq$, look for primes $p$ and $q$ such that $\varphi(n)=(p-1)(q-1)=60$. Then it all works nicely $-$ you should find that $(10^{11})^{11}\equiv 10\bmod n$.

TonyK
  • 64,559