Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralHit test with a Region Pin
Guinness4Strength4-Aug-04 9:35
Guinness4Strength4-Aug-04 9:35 
GeneralRe: Hit test with a Region Pin
Nick Parker4-Aug-04 11:30
protectorNick Parker4-Aug-04 11:30 
GeneralRe: Hit test with a Region Pin
squonk4-Aug-04 13:34
squonk4-Aug-04 13:34 
QuestionWhere can I find the private key associated to my certificate? Pin
Escroto4-Aug-04 9:31
Escroto4-Aug-04 9:31 
AnswerRe: Where can I find the private key associated to my certificate? Pin
Heath Stewart4-Aug-04 12:07
protectorHeath Stewart4-Aug-04 12:07 
GeneralCasting problem Pin
BrcKcc4-Aug-04 8:19
BrcKcc4-Aug-04 8:19 
Generalconceptual question about cryptography and CAPICOM Pin
pelos4-Aug-04 6:33
pelos4-Aug-04 6:33 
GeneralRe: conceptual question about cryptography and CAPICOM Pin
Heath Stewart4-Aug-04 7:10
protectorHeath Stewart4-Aug-04 7:10 
Don't use CAPICOM (an interop library). Almost all the functionality of the CryptoAPI is encapsulates in the System.Security.Cryptography namespace and child namespaces and is written to support .NET while using the CAPICOM requires marshalling and isn't always .NET-friendly.

When you sign data, you sign with your private key. This allows the recipient(s) to verify your signature (an encrypted digest of the clear-text, typically) using your public key. RSA uses the same signature and encryption algorithms, where DSA uses different algorithms (more secure).

The private key is maintained soley by the user. It should never be uploaded to a PKI server or be available for others. That would defeat the whole purpose of public key encryption. Only the public key is made public, hence the name.

If you're trying to access your private key, you must provide CSP (cryptographic service provider) information to use a CSP (software-based, smart card, etc.) that contains a private key, as well as how to access that private key.

If you want, see my list of articles (link to them in my sig) for the XML Digital Signatures article. That contains information about using XML signatures and the SignedXml and SignedInfo classes to access your private key in a software-based provider (used by the sn.exe .NET Framework utility app) using the right index into the right key provider.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: conceptual question about cryptography and CAPICOM Pin
pelos5-Aug-04 1:53
pelos5-Aug-04 1:53 
GeneralRe: conceptual question about cryptography and CAPICOM Pin
Heath Stewart5-Aug-04 2:29
protectorHeath Stewart5-Aug-04 2:29 
GeneralSorting in HashTables/SortedLists etc Pin
MrEyes4-Aug-04 6:12
MrEyes4-Aug-04 6:12 
GeneralRe: Sorting in HashTables/SortedLists etc Pin
Heath Stewart4-Aug-04 7:05
protectorHeath Stewart4-Aug-04 7:05 
GeneralRe: Sorting in HashTables/SortedLists etc Pin
scadaguy4-Aug-04 12:09
scadaguy4-Aug-04 12:09 
QuestionHowto write values into a Access DB? Pin
bin_jackson4-Aug-04 6:11
bin_jackson4-Aug-04 6:11 
AnswerRe: Howto write values into a Access DB? Pin
Nick Parker4-Aug-04 6:50
protectorNick Parker4-Aug-04 6:50 
GeneralRe: Howto write values into a Access DB? Pin
bin_jackson4-Aug-04 7:00
bin_jackson4-Aug-04 7:00 
GeneralFolderBrowser crashes with long paths Pin
Lasome4-Aug-04 5:47
Lasome4-Aug-04 5:47 
GeneralRe: FolderBrowser crashes with long paths Pin
Heath Stewart4-Aug-04 5:54
protectorHeath Stewart4-Aug-04 5:54 
GeneralRe: FolderBrowser crashes with long paths Pin
Lasome4-Aug-04 5:59
Lasome4-Aug-04 5:59 
GeneralRe: FolderBrowser crashes with long paths Pin
Nick Parker4-Aug-04 6:10
protectorNick Parker4-Aug-04 6:10 
GeneralRe: FolderBrowser crashes with long paths Pin
Heath Stewart4-Aug-04 7:01
protectorHeath Stewart4-Aug-04 7:01 
Generalrun time properties in icon Pin
aberger564-Aug-04 5:33
aberger564-Aug-04 5:33 
GeneralRe: run time properties in icon Pin
Heath Stewart4-Aug-04 5:49
protectorHeath Stewart4-Aug-04 5:49 
GeneralRe: run time properties in icon Pin
Nick Parker4-Aug-04 5:55
protectorNick Parker4-Aug-04 5:55 
GeneralRe: run time properties in icon Pin
aberger564-Aug-04 6:13
aberger564-Aug-04 6:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.