Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



XML encryption and decryption

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 03-03-2010
Member
 
Join Date: Feb 2010
Posts: 519
XML encryption and decryption

Hi all,

I am working as a web developer in one company. I used XML for validation the webpage. Xml encryption is a w3c encrypted xml standards. The encryption process involves encrypted xml document element and its sub-elements, through encryption, xml initial content will be replaced, but the xml format is still being retained intact. I want to know that how XML can be encrypted and decrypted. Please advice. Thanks in advance.
Reply With Quote
  #2  
Old 03-03-2010
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,937
Re: XML encryption and decryption

We have some encryption methods in xml. One is symmetric encryption method of encrypting xml. This encryption method uses only one key, that is whether it is encrypted or decrypted xml an xml use the same key. Because the key is not to save encrypted xml, so we need to encryption and decryption process of loading the key and protect it from being stolen.Uusing symmetric encryption and asymmetric encryption method to encrypt a combination of xml. This method requires a symmetric key used to encrypt the data, and a symmetric key used to protect the non-symmetric key. Encrypted symmetric key and encrypted data stored in the xml along with the document. When using private, non-symmetric key decryption key, when to use the public key of an asymmetric key encryption. Check and reply.
Reply With Quote
  #3  
Old 03-03-2010
Member
 
Join Date: May 2008
Posts: 1,990
Re: XML encryption and decryption

I am using Non-symmetric encryption algorithm that requires two keys: public key (publickey) and private key (privatekey). Public key and private key are a pair, if the public key used to encrypt data, Only the corresponding private key can decrypt; if the private key used to encrypt the data, then only with the corresponding public key can decrypt. Because the encryption and decryption using two different keys, so this algorithm is called for non-symmetric encryption algorithm). Using X.509 encryption xml, this method is to use X.509 as a non-symmetric key, which consists of a third party such as VeriSign and the like to provide. All the best.
Reply With Quote
  #4  
Old 03-03-2010
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
XML encryption and decryption

No matter how the xml encryption is done, save the encrypted data is always one of two ways.
(1). Encrypted all of the elements have been named <EncryptedData>
(2) Only the encrypted data to be replaced, while the element name is still readable, and will not change.
This subtle change is very important. For example, If your xml document including the root element is called <employee>, the root element has a section under the detailed information stored in the sub-elements called <WrittenWarning>. If you send this xml, and want to <WrittenWarning> This element is protected, then the method using the first one, then <WrittenWarning> will be replaced <EncryptedData>, you will not be encrypted document from the get any readable information. Check and reply.
Reply With Quote
  #5  
Old 03-03-2010
Modifier's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,502
XML encryption and decryption

In .Net 2.0 in you can modify the properties of a Boolean value, it can be very simple and the choice of which method to use. The following xml example uses a non-encrypted symmetric encryption method, the xml element of the document under the author and the author of the content of encrypted elements using <EncryptedData> to replace.
Code:
xml document
<? xml version = "1.0" standalone = "no"?>
<article>
<articleinfo>
<title> XPathQueries on XmlDocument objects in. NET 1.1 </ title>
<abstract>
<para> Hello </ para>
</ abstract>
<author>
<honorific> Mr. </ honorific>
<firstname> George </ firstname>
<surname> Jaohn </ surname>
<email> 1@abc.com </ email>
</ author>
</ articleinfo>
Reply With Quote
  #6  
Old 03-03-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
XML encryption and decryption

xml decryption process can be summarized as the following four steps:
1.In the xml document, select an EncryptedData element
2.The use of a non-symmetric key to decrypt the key (using the private key)
3.The use of non-encrypted key to decrypt the data
4.Replace the Encrypted Data element in the elements are not encrypted.
All the best.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "XML encryption and decryption"
Thread Thread Starter Forum Replies Last Post
How can be digital signature used in Encryption and decryption process sRIPRIYA Networking & Security 3 03-01-2011 09:11 AM
DES encryption and decryption using C or Java sayanmaji Software Development 5 26-11-2010 03:20 AM
RSA decryption problem in C# taher Software Development 5 21-01-2010 09:30 PM
Do you know difference between encryption and decryption? rooki Networking & Security 4 30-11-2009 12:24 PM
Encryption in JavaScript, Decryption in PHP Rail racer Software Development 6 11-10-2008 04:42 PM


All times are GMT +5.5. The time now is 07:47 AM.