I tried the --with-key-data option which gives the numbers I'm looking for. Unfortunately, this doesn't work with the secret key. I tried with pgpdump but it doesn't work anymore because numbers in secret keys are encrypted.
Is there any way to decrypt these numbers in the secret key?

Le 03/08/2011 14:23, Werner Koch a écrit :
On Tue,  2 Aug 2011 20:10, tigresetdrag...@yahoo.fr said:

I would like to know an easy way to get numbers used in a key.
For example, in a RSA key, N and e (used like this: message^e modulus N)

Import the key and then:

$ gpg --list-keys --with-key-data KEYID

In the output look for pkd records:

If field 1 has the tag "pkd", a listing looks like this:
pkd:0:1024:B665B1435F4C2 .... FF26ABB:
     !  !   !-- the value
     !  !------ for information: number of bits in the value
     !--------- index (eg. DSA goes from 0 to 3: p,q,g,y)

The entire format is decribed in doc/DETAILS.


Salam-Shalom,

    Werner


_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to