Extract numbers from a key
Sébastien
tigresetdragons at yahoo.fr
Wed Aug 3 23:39:45 CEST 2011
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, tigresetdragons at 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
>
More information about the Gnupg-users
mailing list