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