GnuPG <-> RSACryptoServiceProvider key translation
From: Roy Pardee (rpardee_at_comcast.net)
Date: 08/06/04
- Previous message: Scott: "Re: Signing a manifest without using XMLSign"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 6 Aug 2004 12:56:56 -0700
Greetings all,
I'm trying to create a .net program that can decrypt files that will
be rsa-encrypted with the gnupg program (on mac os X, if that's
important).
I've got hold of a copy of gpg, generated a key pair & sent my public
key to my correspondent.
I thought I would try to use
System.Security.Cryptography.RSACryptoServiceProvider to decrypt the
incoming files. The problem I'm having is in translating my private
key, which gpg spits out as encoded text, like so (this is a portion
of my public key, but the private key looks much the same):
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.1 (MingW32) - WinPT 0.7.96rc1
mQGiBEC06YQRBACNnZ5FZorejPPpR9j8V3YmPO8Plxq6p0Qpx/2SXG7YOfmoQFIV
gWaFQjnk/Su3+isoTa7gevezP0arR4tXUThZhyNlzZ4UKPya+tGUcy49LRBd3YUS
Wl8G+rJBSN5JJc4mbwBkUh0pq0QVsrqQ4DMO6VwfAuYqZDw72LouEUy7FwCg/ADm
-----END PGP PUBLIC KEY BLOCK-----
into something I can feed into the various parameters of the
RSAParameters object (which is where I gather that should go--is that
right?).
Can anybody advise me on how to do this? Is my ultimate goal
possible?
Thanks!
-Roy
- Previous message: Scott: "Re: Signing a manifest without using XMLSign"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|