PageRenderTime 34ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/Visual Studio 2008/CSXmlEncryption/ReadMe.txt

#
Plain Text | 51 lines | 35 code | 16 blank | 0 comment | 0 complexity | 9279306434b6c3cf27258534f0e39b76 MD5 | raw file
  1. ========================================================================
  2. WINDOWS APPLICATION : CSXmlEncryption Project Overview
  3. ========================================================================
  4. /////////////////////////////////////////////////////////////////////////////
  5. Use:
  6. CSXmlEncryption demonstrates how to use .NET built-in classes to encrypt and
  7. decrypt Xml document:
  8. /////////////////////////////////////////////////////////////////////////////
  9. Code Logic:
  10. Use .NET built-in classes to encrypt and decrypt Xml document.
  11. A. Creates a cryptographic provider object which supplies public/private
  12. key pair.
  13. B. Creates a separate session key using symmetric algorithm.
  14. C. Uses the session key to encrypt the XML document and then uses public key
  15. of stepA f to encrypt the session key.
  16. D. Saves the encrypted AES session key and the encrypted XML data to the XML
  17. document within a new <EncryptedData> element.
  18. E. To decrypt the XML element, we retrieve the private key of stepA, use it
  19. to decrypt the session key, and then use the session key to decrypt the
  20. document.
  21. /////////////////////////////////////////////////////////////////////////////
  22. References:
  23. .NET Security and Cryptography
  24. http://www.amazon.com/Security-Cryptography-Integrated-Object-Innovations/dp/013100851X
  25. RSACryptoServiceProvider Class
  26. http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsacryptoserviceprovider.aspx
  27. Cryptography in .NET
  28. http://www.developer.com/net/net/article.php/1548761
  29. DSACryptoServiceProvider Class
  30. http://msdn.microsoft.com/en-us/library/system.security.cryptography.dsacryptoserviceprovider.aspx
  31. Cryptography in Microsoft.NET Part I: Encryption
  32. http://www.c-sharpcorner.com/UploadFile/gsparamasivam/CryptEncryption11282005061028AM/CryptEncryption.aspx
  33. Cryptography in Microsoft.NET Part II: Digital Envelop and Digital Signatures
  34. http://www.c-sharpcorner.com/UploadFile/Gowri%20S%20Paramasivam/Cryptography211242005003308AM/Cryptography2.aspx
  35. /////////////////////////////////////////////////////////////////////////////