Hi,
I have some questions about matching key id's.
1. I am trying to find the key id of the key that encrypted a file so
that I can use the corresponding decrypting key.
2. I am trying to use the correct decrypting key from the keyring using
the code shown here to decrypt.
Appreciate any advice ?
Thanks,
Mohan
PGPSecretKey prk = ( PGPSecretKey )keyIt.next();
PGPPublicKey puk = prk.getPublicKey();
sb.append( "Private [" + prk.getKeyID() + "]
Public [" + puk.getKeyID() + "]\n" );
for( Iterator it = puk.getUserIDs() ;
it.hasNext() ; ){
sb.append( "User ID [" + it.next() + "]\n"
);
}
_______________________________________________
Gnupg-users mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnupg-users