🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #7964

Re: Uniqueness of Key ID

#7964
From: Your Name
Date: Sat, 11 Sep 1999 00:00
52 lines
2508 bytes
In article <37D93FB5.8EB6D92A@multiweb.nl>, user@multiweb.nl says...
>
>Your Name wrote:
>
>> If the key modulus had more than two prime divisors, it
>> would not work.
>> 
>> --Rich
>
>Why not?? Won't ed=1[mod (p-1)(q-1)] work for any two factors?

If the number n created by changeing some bits in a 
PK modulus had three divisors p, q, r

Then you would want e*d = 1 mod (p-1)*(q-1)*(r-1)=j

This might work if p,q,r were distinct primes but 
would not work otherwise because the number of 
positive integers less than n and relativly prime to 
n would not = j which is a necessary condition for
Euler's equation or Fermat's Theorem. 

>I'm no mathematician, so I can't tell. Perhaps I could try to calculat
>e
>the secret component to my 'bogus' key. But I will need to download th
>e
>PGP source first, factor the public modulus (which shouldn't be to har
>d
>for my computer) and recompile it with some hardwired p and q. Then I
>could check if decryption works.
>
>A bit over my head maybe. You could be right..

It would be much easier to try a test useing small
numbers.  Let n = p*q*r = 3*5*7 = 105

let encryption key e = 4 

Calculate the decryption key d = the multiplicative
inverse of e mod j     ed = 1 mod j

Just try all the numbers less than 105 untill you 
find it.  You won't have to code an algorithm

Then encrypt and decrypt some numbers m
You could do all the numbers from 2 to 105 
 
Calculate k = m**e mod n , and k**d mod n
then observe if k**d mod n = m

--Rich Eramian aka Your Name 
 
Technical Details
Message-ID: <4vlC3.71$n82.15074@news.shore.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.mbox.zip!not-for-mail
References: <7qtmmq$nia$1@lure.pipex.net> <37D4161B.B0AE1BB2@multiweb.nl> <37d4b9e5.37031520@news.cyberia.net.lb> <37D6A823.AD38FB7@multiweb.nl> <qFRB3.43$kU.1970@news.shore.net> <37D93FB5.8EB6D92A@multiweb.nl>

Show Full Headers
Complete Article Headers
Message-ID: <4vlC3.71$n82.15074@news.shore.net>
Subject: Re: Uniqueness of Key ID
Date: Sat, 11 Sep 1999 00:00:00 +0000
From: username@shore.net (Your Name)
References: <7qtmmq$nia$1@lure.pipex.net> <37D4161B.B0AE1BB2@multiweb.nl> <37d4b9e5.37031520@news.cyberia.net.lb> <37D6A823.AD38FB7@multiweb.nl> <qFRB3.43$kU.1970@news.shore.net> <37D93FB5.8EB6D92A@multiweb.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.mbox.zip!not-for-mail
X-Deja-AN: 523666510
X-Complaints-To: abuse@shore.net
X-Trace: news.shore.net 937026624 209.192.169.51 (Sat, 11 Sep 1999 01:10:24 EDT)
Organization: Shore Net
MIME-Version: 1.0
NNTP-Posting-Date: Sat, 11 Sep 1999 01:10:24 EDT
Newsgroups: alt.privacy,alt.privacy.anon-server,alt.security.pgp