Exploring XML Encryption
PeterMan writes "Here's a good XML Encription article that examines the usage model of XML Encryption with the help of a use case scenario. It presents a simple demo application, explaining how it uses the XML Encryption implementation. It then continues with the use of JCA/JCE classes to support cryptography. Finally, It discusses the applications of XML Encryption in SOAP-based Web services."
XML is just a form of data, and should be totally independent in regards to encryption. If it transport mechanisms like SOAP work over HTTP, then why not just use HTTPS? What's next - an encryption standard for PNG images, text files and MPG movies? Maybe someone can enlighten me :-)
Everyone agrees on two things:
But I have some reasons to be pessimistic about XML.
If the underlying DTDs and Schemas are not well distributed, as in free, open, unrestricted, the premise of XML as a lingua franca is severely undermined.
Second, it will be too easy to decide that a business logic system based on XML is "too good to reveal to potential competitors and can make us money" and to therefore encrypt many more things that ought not to be encrypted if the objective is to make XML widespread and useful.
"Provided by the management for your protection."
How are you going to be able to process large amounts of XML data?
Think about the massive, bloated overhead already associated with XML... now you are going to encrypt individual elements of XML with a variety of different schemes?
This whole XML thing seems to be Intel's wet dream come true.
Conformity is the jailer of freedom and enemy of growth. -JFK
Sounds kind of cool, but at the same time utterly useless. It's a hell of a lot easier to encrypt document fragments as a whole then encrypting individual nodes of a document (in my opinion). The alternative you outlined still sounds much more robust to me than encrypted islands inside a supposedly human-readable XML file.
See subject.
- Have a picture