DSACryptoServiceProvider...

  • Thread starter Thread starter Psiman
  • Start date Start date
P

Psiman

Hi,

I need to get hold of the string representation of the public and private
keys generated by a DSACryptoServiceProvider. Is this possible?

Cheers

Simon
 
Hi Psiman,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to get the public and private
key that was generated by DSACryptoServiceProvider in string. If there is
any misunderstanding, please feel free to let me know.

As far as I know, DSACryptoServiceProvider and DSA has a method named
ToXmlString. This exports the contents of the object to an xml string.
However, the content has not been officially documented. You need to get
the keys from that string.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Kevin,

Thanks for your reply. Yes that is exactly what I would like to do. I
had looked at the ToXmlString method, but in the end have used the
ExportParameters method, which returns a DSAParameters class, the X and Y
members of which are the private and public keys respectively.
 
Hi Psiman,

It was nice to hear that you have had the problem resolved. Thanks for
sharing your experience with all the people here. If you have any
questions, please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top