🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.crypt
Article #1031

Re: pgp2.0 - what is an appropriate key length?

#1031
From: Robert Marti
Date: Mon, 28 Sep 1992 16:08
34 lines
2120 bytes
In article <1992Sep25.191759.25545@nevada.edu>, oliverm@nevada.edu
(Moises Oliveira) writes:
|> Now, assume that the actual factoring is trivial by use of some mathematical
|> method.  What good does it do you?  Exactly how does having the two prime 
|> factors of some really big number do to help you crack RSA?
|> 
|> In other words, if I see someones public key, how can I find what really
|> big number they used? And then after I factor it, what whould I do to the
|> encrypted communications to return it to plain text?

Here is a Mathematica function to crack an RSA public key consisting of
the public modulus n ("the big number", as you call it) and the public
exponent e:

crackRSA[publicKey[e_,n_]] :=
  Block[ { factors = FactorInteger[n], p, q },
    p = factors[[1,1]]; q = factors[[2,1]];
    PowerMod[e, -1, (p - 1) (q - 1)]
  ]

p and q are the two prime factors of n.  The function returns the secret
(private) exponent d which is the multiplicative inverse of e in the
finite field of numbers in the range [0,(p-1)(q-1)-1].  (I have never
tried it for moduli n which have more than about 20 digits ... )

Check out any good book on modern cryptography or chapter 33 of
"Introduction to Algorithms" by Cormen, Leiserson and Rivest
for the number theoretical background.

-- 
Robert Marti                    |  Phone:    +41 1 254 72 60
Informationssysteme             |  FAX:      +41 1 262 39 73
ETH-Zentrum                     |  E-Mail:   marti@inf.ethz.ch
CH-8092 Zurich, Switzerland     |
Technical Details
Message-ID: <1992Sep28.160834.5578@neptune.inf.ethz.ch>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!chx400!bernina!neptune!nugget.inf.ethz.ch!marti
References: <1992Sep25.191759.25545@nevada.edu>

Show Full Headers
Complete Article Headers
Newsgroups: sci.crypt,alt.security,alt.security.pgp
Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!chx400!bernina!neptune!nugget.inf.ethz.ch!marti
From: marti@nugget.inf.ethz.ch (Robert Marti)
Subject: Re: pgp2.0 - what is an appropriate key length?
Message-ID: <1992Sep28.160834.5578@neptune.inf.ethz.ch>
Sender: news@neptune.inf.ethz.ch (Mr News)
Nntp-Posting-Host: nugget.inf.ethz.ch
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH), Zurich, CH
References:  <1992Sep25.191759.25545@nevada.edu>
Date: Mon, 28 Sep 1992 16:08:34 GMT
Lines: 34