PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Visual Studio 2008/CSXmlDigitalSignature/ReadMe.txt

#
Plain Text | 64 lines | 45 code | 19 blank | 0 comment | 0 complexity | 14a723da81a243d209883ec28c311427 MD5 | raw file
 1========================================================================
 2    WINDOWS APPLICATION : CSXmlDigitalSignature Project Overview
 3========================================================================
 4
 5/////////////////////////////////////////////////////////////////////////////
 6Use:
 7
 8Digital Signatures:
 9
10We take the original message and create a message digest by applying the hash
11algorithm on the message. The message digest is then encrypted using the 
12private key known only to the private key owner (i.e., the sender).The signed
13message is formed by concatenating the original message with the unique 
14digital signature and the public key that is associated with the private key 
15that produced that signature. This entire signed message is then sent to the 
16desired recipient.
17
18The received signed message is broken into its three components: the original
19message, the public key, and the digital signature. For comparison against 
20the hash of the original message, it is necessary to compute the hash of the 
21received message. If the message digest has not changed, then you can be very
22confident that the message itself has not changed. On the other hand, if the
23message digest has changed, then you can be quite certain that the received 
24message has been corrupted or tampered with.
25
26CSDigitalSignature demonstrates how to use .NET built-in classes to implement 
27Digital Signature for Xml documents.
28
29
30/////////////////////////////////////////////////////////////////////////////
31Code Logic:
32
33Use .NET built-in classes to implement XML digital signature.
34
35A. Creates a cryptographic provider object which supplies public/private
36   key pair.
37B. Uses the private key to sign an entire XML document.
38C. Attaches the signature to the document in <Signature> element.
39D. Uses the public key to verify the digital signature
40
41
42/////////////////////////////////////////////////////////////////////////////
43References:
44
45.NET Security and Cryptography 
46http://www.amazon.com/Security-Cryptography-Integrated-Object-Innovations/dp/013100851X
47
48RSACryptoServiceProvider Class
49http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsacryptoserviceprovider.aspx
50
51Cryptography in .NET
52http://www.developer.com/net/net/article.php/1548761
53
54DSACryptoServiceProvider Class
55http://msdn.microsoft.com/en-us/library/system.security.cryptography.dsacryptoserviceprovider.aspx
56
57Cryptography in Microsoft.NET Part I: Encryption
58http://www.c-sharpcorner.com/UploadFile/gsparamasivam/CryptEncryption11282005061028AM/CryptEncryption.aspx
59
60Cryptography in Microsoft.NET Part II: Digital Envelop and Digital Signatures
61http://www.c-sharpcorner.com/UploadFile/Gowri%20S%20Paramasivam/Cryptography211242005003308AM/Cryptography2.aspx
62
63
64/////////////////////////////////////////////////////////////////////////////