PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms 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/////////////////////////////////////////////////////////////////////////////
 6Use:
 7
 8CSXmlEncryption demonstrates how to use .NET built-in classes to encrypt and 
 9decrypt Xml document:
10
11
12/////////////////////////////////////////////////////////////////////////////
13Code Logic:
14
15Use .NET built-in classes to encrypt and decrypt Xml document.
16
17A. Creates a cryptographic provider object which supplies public/private
18   key pair.
19B. Creates a separate session key using symmetric algorithm.
20C. Uses the session key to encrypt the XML document and then uses public key
21   of stepA f to encrypt the session key.
22D. Saves the encrypted AES session key and the encrypted XML data to the XML
23   document within a new <EncryptedData> element.
24E. To decrypt the XML element, we retrieve the private key of stepA, use it 
25   to decrypt the session key, and then use the session key to decrypt the 
26   document.
27
28
29/////////////////////////////////////////////////////////////////////////////
30References:
31
32.NET Security and Cryptography 
33http://www.amazon.com/Security-Cryptography-Integrated-Object-Innovations/dp/013100851X
34
35RSACryptoServiceProvider Class
36http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsacryptoserviceprovider.aspx
37
38Cryptography in .NET
39http://www.developer.com/net/net/article.php/1548761
40
41DSACryptoServiceProvider Class
42http://msdn.microsoft.com/en-us/library/system.security.cryptography.dsacryptoserviceprovider.aspx
43
44Cryptography in Microsoft.NET Part I: Encryption
45http://www.c-sharpcorner.com/UploadFile/gsparamasivam/CryptEncryption11282005061028AM/CryptEncryption.aspx
46
47Cryptography in Microsoft.NET Part II: Digital Envelop and Digital Signatures
48http://www.c-sharpcorner.com/UploadFile/Gowri%20S%20Paramasivam/Cryptography211242005003308AM/Cryptography2.aspx
49
50
51/////////////////////////////////////////////////////////////////////////////