|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Exporting public key from RSACryptoServiceProvider in ASN.1 formatIs it possible to export the public key generated by
RSACryptoServiceProvider in ASN.1 format? I need to decrypt using other "frameworks" (e.g. Delphi using LockBox). I only need to do this with the public key - the private one will only be used by .NET applications. I'm encrypting a small serial number in one application (the .NET app) and them having it decypted by remote applications.(multiple platforms/frameworks). If it's possible to export RSACryptoServiceProvider public keys as ASN.1, how would I go about doing it? Debbie Croft wrote:
> Is it possible to export the public key generated by CryptExportKey(..., PUBLICKEYBLOB...) is exporting public key in ASN.1> RSACryptoServiceProvider in ASN.1 format? I need to decrypt using other > "frameworks" (e.g. Delphi using LockBox). I only need to do this with the > public key - the private one will only be used by .NET applications. > > I'm encrypting a small serial number in one application (the .NET app) and > them having it decypted by remote applications.(multiple > platforms/frameworks). > > If it's possible to export RSACryptoServiceProvider public keys as ASN.1, > how would I go about doing it? format. With RSACryptoServiceProvider you should be able to use ExportCspBlob (which is actually calling CryptExportKey). Was that what you were looking for? -Valery. http://www.harper.no/valery Yes, quite possibly. I'll try this out and see if it solves my problem.
Show quoteHide quote "Valery Pryamikov" <val***@harper.no> wrote in message news:1167486048.071515.216640@n51g2000cwc.googlegroups.com... > Debbie Croft wrote: >> Is it possible to export the public key generated by >> RSACryptoServiceProvider in ASN.1 format? I need to decrypt using other >> "frameworks" (e.g. Delphi using LockBox). I only need to do this with the >> public key - the private one will only be used by .NET applications. >> >> I'm encrypting a small serial number in one application (the .NET app) >> and >> them having it decypted by remote applications.(multiple >> platforms/frameworks). >> >> If it's possible to export RSACryptoServiceProvider public keys as ASN.1, >> how would I go about doing it? > > CryptExportKey(..., PUBLICKEYBLOB...) is exporting public key in ASN.1 > format. > With RSACryptoServiceProvider you should be able to use ExportCspBlob > (which is actually calling CryptExportKey). > > Was that what you were looking for? > > -Valery. > http://www.harper.no/valery >
elevate rights within an application
Error importing key - object already exists. How to retrieve the domain name for an AD user object? Securing Web Servicesq Does PKCS11 Wrapper in C# exits?? Trusting a .NET 1.1 assembly from the command line (ie: batch scri SslStream.AuthenticateAsClient is slow (calling the RemoteCertificateValidationCallback) Adminstrator User Disappeared SignedXml - ds prefix Problem with dataGrid! |
|||||||||||||||||||||||