473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

DSACryptoServiceProvider...

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
Nov 16 '05 #1
3 3633
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."

Nov 16 '05 #2
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.
Nov 16 '05 #3
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."

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gregory L Priem | last post by:
i have been unable to get any of the classes in the System.Security.Cryptography namespace to work on my w2k machine, so i created a vmware session starting from scratch, to remove any possible...
0
by: KK | last post by:
Hi, I want to sign my hash using a private key. DSACryptoServiceProvider.SignHash method says it signs using the given private key, but where to give the key? public byte SignHash( byte...
2
by: Leonardo D'Ippolito | last post by:
Hi! I have two .NET win apps that need to communicate on a TCP/IP network. 'App A' must ask 'app B' if it's allowed to do some task, and 'app B' must authorize or prohibit it. How can I do...
0
by: - HAL9000 | last post by:
I have created code similar to this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyDSACryptoServiceProviderClassTopic.asp My problem...
0
by: steven acer | last post by:
Hi i'm trying to sign a file and verify its signature with a DSA key. But i don't know if i'm doing it the right way !. I tried 2 different ways but i either got an error or simply the...
1
by: anujkgarg | last post by:
I am trying to fetch public key from DSA certificate using .NET cryptography API. It is taking 15 to 45 seconds..... String crtFileName = "C:\mycert.crt"; X509Certificate2 x509...
3
by: tmoloy | last post by:
I am using RFID tags to store some data which will then be read by a 3rd party. I need to include a digital signature (or some variation) along with the data so that the 3rd party can verify the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.