Windows Develop Bookmark and Share   
 index > Windows Forms General > Which algorithm is better for encrypt and decrypt Xml document?
 

Which algorithm is better for encrypt and decrypt Xml document?

Hi,

i am developing one application, i this i am using XML as back-end for storing the data.

In this i need to encrypt this file and whenever i open the application i need to decrypt that fxml file, and i need to use that data in my application.

Which algorithm is better in this criteria ?

MadhuSudhan Reddy Pulimi  Saturday, May 03, 2008 9:40 AM

Hi,

You have got multiple ways to encrypt/decrypt Xml elements. You can use either Symmetric keys, Assymetric keys orCertificates.

Its been observed DES and TripleDESare quietslow in performance. I usuallyprefer AES(Rjindael).

One option is to use use symmetric-keys to protect your XML elements and then use anasymmetric key to protect thetransfer of yoursymmetric key.

Here's some examples using Rjindael:

How to: Encrypt XML Elements with Symmetric Keys

How to: Decrypt XML Elements with Symmetric Keys

HTH,
Suprotim Agarwal

Suprotim Agarwal  Saturday, May 03, 2008 10:10 AM

Hi,

I've written up something on Xml encryption here..

http://www.dsmyth.net/wiki/XMLEncryption.ashx

Derek Smyth  Saturday, May 03, 2008 12:32 PM

Hi,

You have got multiple ways to encrypt/decrypt Xml elements. You can use either Symmetric keys, Assymetric keys orCertificates.

Its been observed DES and TripleDESare quietslow in performance. I usuallyprefer AES(Rjindael).

One option is to use use symmetric-keys to protect your XML elements and then use anasymmetric key to protect thetransfer of yoursymmetric key.

Here's some examples using Rjindael:

How to: Encrypt XML Elements with Symmetric Keys

How to: Decrypt XML Elements with Symmetric Keys

HTH,
Suprotim Agarwal

Suprotim Agarwal  Saturday, May 03, 2008 10:10 AM

Hi,

I've written up something on Xml encryption here..

http://www.dsmyth.net/wiki/XMLEncryption.ashx

Derek Smyth  Saturday, May 03, 2008 12:32 PM

You can use google to search for other answers

Custom Search

More Threads

• How can I find out if a form (in my case a child form of MDI parent) is maximized?
• MDIContainer Docking a dialog
• Problem With WinForm AcceptButton Property
• Make about.cs show without 'new'?
• DateTime Picker-Error
• Progress Bar and Upload FTP
• Backgroundworker to create a progress dialog form
• Single Instance Applications - Issue with dropdown control
• C# Windows Application Detect Run Mode
• Tab Index problem ???