Greetings all,

I'm trying to create a .net program that can decrypt files that will be
rsa-encrypted with the gpg 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

Roy Pardee
Research Analyst/Programmer
Center For Health Studies (Cancer Research Network)
Group Health Cooperative
(206) 287-2078

This message and any attached files might contain confidential
information protected by federal and state law. The information is
intended only for the use of the individual(s) or entities originally
named as addressees. The improper disclosure of such information may be
subject to civil or criminal penalties. If this message reached you in
error, please contact the sender and destroy this message. Disclosing,
copying, forwarding, or distributing the information by unauthorized
individuals or entities is strictly prohibited by law.

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to