![]() |
|
|
#1 |
|
Nov 2010
210 Posts |
Hi!
I am a first year mathematics student at Imperial College London. Our teacher in computing class has set us an extra credit assignment - cracking the RSA key visible on his website. My question is, if that sort of feat is doable in less than 2 weeks on an i7 dual core laptop? Of course I am not allowed to ask anyone to do the factoring for me, but I am allowed to use any tools available. Currently I am trying to do it in maple, however from what I have read, it does not have the GNFS algorithm built in, will this affect my performance significantly? Please excuse me if my questions are silly or idiotic, but I am still reading up on lots of topics connected with sieving, factoring and it is sort of difficult for me to get my head around all that :) Thank you Tom |
|
|
|
|
|
#2 |
|
"Serge"
Mar 2008
San Diego, Calif.
32×7×163 Posts |
No, not in two weeks, not on a laptop.
Sieving would take ~5000 core-hrs (on a 2-yr old CPU), so probably half that on a new CPU; that's about 100 core-days. And the linear algebra step alone would take a week at least. With 16 modern cores, you could probably do it in two weeks. (give or take) P.S. However, his task could be a trick question - and what he wants is for you guys to try ECM just in case his key is a bad key. This reminds about the strange key from Knuth's book. Last fiddled with by Batalov on 2010-11-17 at 04:34 |
|
|
|
|
|
#3 | |
|
"Ben"
Feb 2007
3×5×251 Posts |
Quote:
You will need GNFS, which involves obtaining and learning to run several programs. I'll point you here first, feel free to ask further questions after looking over the guide. |
|
|
|
|
|
|
#4 | |
|
"Ben"
Feb 2007
72658 Posts |
Quote:
|
|
|
|
|
|
|
#5 | |
|
Nov 2010
2 Posts |
Quote:
We are free to use whatever and I am fairly sure there is no specific approach in mind, I guess, however, that in my case we are expected to find a way that is fast at the cost of accuracy. I could try clustering up a couple of friends computers for this task. Are there any other attacks on RSA? I could try encoding data with this key and exponent (37) lots of times to find how many permutations does it take for it to get back to the original input, would that take longer? |
|
|
|
|
|
|
#6 | |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
10B716 Posts |
Quote:
40 and 80 are trivial (seconds to minutes) on any computer. 120 digits, assuming it doesn't have any small or easily-discoverable factors, can be done in a few days to a week or two with a computer. 150 and 160 digits, assuming it doesn't have any small or easily-discoverable factors, require significant hardware to finish within two weeks. Not the sort of thing a teacher would expect each person in a class to do. The sieving part of GNFS can be run in parallel between completely different computers quite efficiently (we do it commonly around here, e.g. to factor this 170 digit composite number with no small factors, or this c161 which the GNFS took 11 days altogether, 4 of which was the linear algebra step). If you are allowed to collaborate with the rest of the class and you all work together, putting all your computers on it 24/7 until the sieving is done, then have the person with the best computer run the post-processing, it could probably be done before the deadline. The biggest difficulties would be getting some number of non-GNFS-familiar people to administrate it and get it running on each computer, and getting someone with a good enough computer to do the post-processing, but neither is insurmountable. Of course, you would want to first run a significant amount of ECM, along with P-1, P+1, and any other factoring methods that might help, just in case the key isn't good at all. As far as I know, for a good key, factoring the public key is the easiest way to break it. Last fiddled with by TimSorbet on 2010-11-17 at 14:22 |
|
|
|
|
|
|
#7 |
|
Dec 2008
179 Posts |
Yes, that would take very much longer. The expected cycle length for the operation x -> x^k (mod n) is nearly n for most k.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Factoring 463 digit | script kiddie | Miscellaneous Math | 125 | 2010-09-03 12:45 |
| How much digit in the M? | Lorenzo | Math | 17 | 2010-08-26 16:54 |
| Need a quick factoring for 21-digit number | jasong | Factoring | 5 | 2007-11-19 17:49 |
| 160 digit factor found of 366 digit (PRP-1) | AntonVrba | Factoring | 7 | 2005-12-06 22:02 |
| Factoring a 617-digit number? | Shakaru | Factoring | 2 | 2005-02-23 19:22 |