logo

Digital Signature Private Key (C# .NET)
Meetu Choudhary posted at Tuesday, May 12, 2009 1:43 AM

I am createing an asp.net web application in which i want to use(i want to use a digital signature certificate which is already issued to the User with my application for every registerd user) a digitalsignature to the user and using that digital signature the user can encrypt and decypt the files and data and mail using combination of private key and public key 

the user will logon using this dsc in the application and using this dsc user can save his data in encypted format in the the   he can ecrpt a file and save on server he can send encrypted email msgs and can decypt the data using same dsc from the database or decypt the file using same dsc

here DSC means Digital Signature Certificate

My Basic Question is How can i Ge the Private Key Of Digital Signature?

Please Help...

Reply    Reply Using Power Editor
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0
RE:
Bill Look provided a rated reply to Meetu Choudhary on Tuesday, May 12, 2009 2:01 AM

Hi

To this you need use the Asymmetric algoritham with Crytography.

To get basic idea about secure your application data  see here

http://msdn.microsoft.com/en-us/library/aa302378.aspx\

to make digital signature with .net public and private key

http://www.codeproject.com/KB/vb/Digital_Signatures.aspx

http://www.c-sharpcorner.com/UploadFile/Gowri%20S%20Paramasivam/Cryptography211242005003308AM/Cryptography2.aspx

tnx
Reply    Reply Using Power Editor
My name is Bill Look, and my profession is software developing since 2006 (having more than 4 years experience) and holding MCTS,MCPD certifications and most of developments are based on MS technologies .Specifically ASP.NET ,Sharepoint and Widows Mobiles. I have worked on ERP systems also.
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0

Thanks for reply but
Meetu Choudhary replied to Bill Look on Tuesday, May 12, 2009 2:26 AM

Thanks for the reply...

but i need not to create the Digital Signature i do have signatures issued by the issuing authority i just need to get the private key of that signature can you please help me with some code samples...


Thanks and Regards,
Meetu Choudhary

Reply    Reply Using Power Editor
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0

Re:Digital Signature Private Key
egg egg replied to Meetu Choudhary on Tuesday, May 12, 2009 6:05 AM

Check this one explaining basic premise public-key cryptography and how it relates to XML Digital Signatures, detail the creation of a key pair, give examples for signing and verifying an XML document, and discuss different implementations to provide reliable application licensing...

http://www.codeproject.com/KB/security/xmldsiglic.aspx

For your exact problem of using Private key you can check here for some inputs...

http://dotnetslackers.com/articles/security/Hashing_MACs_and_Digital_Signatures_in_NET.aspx

http://www.eggheadcafe.com/conversation.aspx?messageid=29236387&threadid=29236365

Reply    Reply Using Power Editor
Having around 7 years of experience in designing and implementing software products including windows, console, service oriented and ofcourse predominantly on Web with .Net, XML, Javascript, Oracle, SQL Server
  Rank Winnings Points
February 5 $94.00 116
January 4 $100.00 362

re
Meetu Choudhary replied to egg egg on Tuesday, May 12, 2009 7:28 AM

I have already gone through these links

let me clarify my problem once again

I am developing a web application in asp.net 3.5 framework with C# and in that application i have a rich textbox or multi line text box which contains data of n length and i want to encrypt and decrypt the data using the digital signatures
please consider that the user using the web application is already having the digital signatures from a Gov. recognized body and my application will not create any Digital Signature it will only use the .pfx file or the installed signature I am able to open the certificate store and it is displaying all the certificates installed on the computer.
now what i need is i want to encrypt the data using the digital signature's public key and decrypt it using the private key of the same digital signature. I may save the public key in the DB for encryption but to decrypt the data we need the digital signature.
please Help me its really very urgent.

 


Thanks and Regards
Meetu Choudhary
Reply    Reply Using Power Editor
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0

check these...
egg egg replied to Meetu Choudhary on Tuesday, May 12, 2009 7:36 AM

this might help you in this regard...

http://www.4guysfromrolla.com/articles/022807-1.aspx

http://www.codeproject.com/KB/cpp/RsaSignatureAppendix.aspx

Reply    Reply Using Power Editor
Having around 7 years of experience in designing and implementing software products including windows, console, service oriented and ofcourse predominantly on Web with .Net, XML, Javascript, Oracle, SQL Server
  Rank Winnings Points
February 5 $94.00 116
January 4 $100.00 362

re
Meetu Choudhary replied to egg egg on Tuesday, May 12, 2009 7:40 AM

Sir  Thanks for your time devotion but

Please Understand i want to use digital signatures issued by 3rd party

here : http://www.codeproject.com/KB/cpp/RsaSignatureAppendix.aspx 

it is encrypting and decrypting the file.

and here

http://www.4guysfromrolla.com/articles/022807-1.aspx

it has used SQL server

Reply    Reply Using Power Editor
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0


Didn't Find The Answer You Were Looking For?

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Ask Question In Live Forum

If you have an OpenID and do not want to become a member of the EggHeadCafe forum, you can also sign on to Chat Chaos and post your question to our real time Silverlight chat application.
Ask Question In Chat Chaos










  $1000 Contest    [)ia6l0 iii - $228  |  Jonathan VH - $161  |  Huggy Bear - $135  |  F Cali - $95  |  egg egg - $94  |  more Advertise  |  Privacy  |   (c) 2010