Home All Groups Group Topic Archive Search About

Assymetric encryption - building an interopable solution that works with .NET/Java/OpenSSL

Author
7 Mar 2005 7:35 PM
mathew mathew via .NET 247
Hi,
I am porting a client program from Java to .NET. In a nut shell I need to encrypt some data and send it over to a linux server, where the data is decrypted using openssl libraries. The public/private keys are generated with openssl routines.

The Java program uses the following cipher, to encrypt data.
-- Cipher.getInstance("RSA/ECB/PKCS1Padding", "BC"); --

Does anyone know what the equivalent implementation of this would be in .NET?
And how would I import/create a CspContainer in Windows from the openssl generated public key?

Many thanks! I must confess, I am getting a little bit lost with all the different terminology/standards used by these different vendors.

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>Am8Z/YDoREqZkTa8YNiLDQ==</Id>

Author
8 Mar 2005 12:17 AM
Michel Gallant
Does the following information help? :
http://www.jensign.com/JavaScience/dotnet/RSAEncrypt

- Mitch Gallant
   MVP Security

"mathew mathew via .NET 247" <anonym***@dotnet247.com> wrote in message news:%235GvEz0IFHA.1396@TK2MSFTNGP10.phx.gbl...
> Hi,
> I am porting a client program from Java to .NET. In a nut shell I need to encrypt some data and send it over to a linux server,
where the data is decrypted using openssl libraries. The public/private keys are generated with openssl routines.
Show quoteHide quote
>
> The Java program uses the following cipher, to encrypt data.
>  -- Cipher.getInstance("RSA/ECB/PKCS1Padding", "BC"); --
>
> Does anyone know what the equivalent implementation of this would be in .NET?
> And how would I import/create a CspContainer in Windows from the openssl generated public key?
>
> Many thanks! I must confess, I am getting a little bit lost with all the different terminology/standards used by these different
vendors.
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>Am8Z/YDoREqZkTa8YNiLDQ==</Id>