Breaking RSA (small e)

Bob's public key is n = 6 , 865 , 653 , 949 , 821 , 276 , 403 , 125 , 067 and e = 3. n=6,865,653,949,821,276,403,125,067\ \ \text{and}\ \ e=3. Alice sends the ciphertext c = 309 , 717 , 089 , 812 , 744 , 704 c=309,717,089,812,744,704 to Bob. What was Alice's message, converted to ASCII?

(You may assume Alice's message is an English word written in capital letters.)


The answer is 676584.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Patrick Corn
Jan 12, 2016

As far as I know, e = 3 e = 3 is not demonstrably unsafe in general. But if your message m m happens to be smaller than n 1 / e n^{1/e} , then m e m^e will be less than n n , so c c will actually equal m e m^e and we can just recover m m by taking m = c 1 / e m = c^{1/e} . This is what happens in this case: ( 309717089812744704 ) 1 / 3 = 676584 (309717089812744704)^{1/3} = 676584 , or "cat."

Very tidy, I mistook the question and thought we were trying to figure it out for each 3 digit grouping instead of it as a whole.

Justin Miller - 2 years, 7 months ago
Carsten Meyer
May 12, 2020

There might be a problem with this question: gcd ( ϕ ( n ) , e ) = 3 1 \gcd(\phi(n),\:e)=3\neq 1 , so e e could not have been chosen as the second part of the public key: n = p q , p = 726 , 455 , 342 , 971 , q = 9 , 450 , 896 , 075 , 377 ϕ ( n ) ( p 1 ) ( q 1 ) ( p 1 ) 0 0 m o d 3 \begin{aligned} n&=pq,&p&=726,455,342,971,&q&=9,450,896,075,377&&&\Rightarrow &&&&\phi(n)&\equiv (p-1)(q-1)\equiv (p-1)\cdot 0\equiv 0\mod 3 \end{aligned} The problem is there are now multiple messages m m Alice could have encoded that all lead to the same codeword c c . Another one is m = 5 , 470 , 551 , 817 , 239 , 310 , 886 , 953 , 747 , m e c m o d n \begin{aligned} m&=5,470,551,817,239,310,886,953,747,&&&m^e&\equiv c\mod n \end{aligned}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...