IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
XMLEncryption.Form1 Class Reference

More...

+ Inheritance diagram for XMLEncryption.Form1:
+ Collaboration diagram for XMLEncryption.Form1:

Public Member Functions

 Form1 ()
 
 Form1 ()
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used. More...
 
override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Private Member Functions

void encryptToolStripMenuItem_Click (object sender, EventArgs e)
 
void decryptToolStripMenuItem_Click (object sender, EventArgs e)
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor. More...
 
void encryptToolStripMenuItem_Click (object sender, EventArgs e)
 
void decryptToolStripMenuItem_Click (object sender, EventArgs e)
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor. More...
 

Private Attributes

RSACryptoServiceProvider rsa
 
System.ComponentModel.IContainer components = null
 Required designer variable. More...
 
System.Windows.Forms.SplitContainer splitContainer1
 
System.Windows.Forms.TextBox txtXml
 
System.Windows.Forms.TextBox txtEncryptedXml
 
System.Windows.Forms.StatusStrip statusStrip1
 
System.Windows.Forms.MenuStrip menuStrip1
 
System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem
 
System.Windows.Forms.ToolStripMenuItem encryptToolStripMenuItem
 
System.Windows.Forms.ToolStripMenuItem decryptToolStripMenuItem
 
System.Windows.Forms.Label warningLbl
 

Detailed Description

Constructor & Destructor Documentation

XMLEncryption.Form1.Form1 ( )
inline
XMLEncryption.Form1.Form1 ( )
inline

Member Function Documentation

void XMLEncryption.Form1.encryptToolStripMenuItem_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Loads the Xml into an Xml document and encrypts the full document from the root it does not cover selecting and encrypting individual nodes in the document however the place where this code would be placed is highlighted.

It also doesn't cover loading or saving the asymmetric keys, the key is created in the encrypt method and because of the way the application works the same key is used to decrypt a new key is generated every time an encyption is ran

Parameters
sender
e

References XMLEncryption.Form1.txtEncryptedXml, and XMLEncryption.Form1.txtXml.

Referenced by XMLEncryption.Form1.InitializeComponent().

void XMLEncryption.Form1.decryptToolStripMenuItem_Click ( object  sender,
EventArgs  e 
)
inlineprivate
override void XMLEncryption.Form1.Dispose ( bool  disposing)
inlineprotected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

References XMLEncryption.Form1.components.

void XMLEncryption.Form1.encryptToolStripMenuItem_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Loads the Xml into an Xml document and encrypts the full document from the root it does not cover selecting and encrypting individual nodes in the document however the place where this code would be placed is highlighted.

It also doesn't cover loading or saving the asymmetric keys, the key is created in the encrypt method and because of the way the application works the same key is used to decrypt a new key is generated every time an encyption is ran

Parameters
sender
e

References XMLEncryption.Form1.txtEncryptedXml, and XMLEncryption.Form1.txtXml.

void XMLEncryption.Form1.decryptToolStripMenuItem_Click ( object  sender,
EventArgs  e 
)
inlineprivate
override void XMLEncryption.Form1.Dispose ( bool  disposing)
inlineprotected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

References XMLEncryption.Form1.components.

Member Data Documentation

RSACryptoServiceProvider XMLEncryption.Form1.rsa
private

RSA asymmetric algorithim used to encrypt the session key, key is generated during the encryption process in this example a key is generated however in an actual application you will need to load and save the keys as appropriate

System ComponentModel IContainer XMLEncryption.Form1.components = null
private

Required designer variable.

Referenced by XMLEncryption.Form1.Dispose().

System Windows Forms SplitContainer XMLEncryption.Form1.splitContainer1
private
System Windows Forms TextBox XMLEncryption.Form1.txtEncryptedXml
private
System Windows Forms StatusStrip XMLEncryption.Form1.statusStrip1
private
System Windows Forms MenuStrip XMLEncryption.Form1.menuStrip1
private
System Windows Forms ToolStripMenuItem XMLEncryption.Form1.fileToolStripMenuItem
private
System Windows Forms ToolStripMenuItem XMLEncryption.Form1.encryptToolStripMenuItem
private
System Windows Forms ToolStripMenuItem XMLEncryption.Form1.decryptToolStripMenuItem
private
System.Windows.Forms.Label XMLEncryption.Form1.warningLbl
private

The documentation for this class was generated from the following files: