XML Encryption


XML Encryption is a specification governed by a World Wide Web Consortium recommendation, that defines how to encrypt the contents of an XML element.

Specification

Although XML Encryption can be used to encrypt any kind of data, it is nonetheless known as "XML Encryption" because an XML element contains or refers to the cipher text, keying information, and algorithms.
Both XML Signature and XML Encryption use the KeyInfo element, which appears as the child of a SignedInfo, EncryptedData, or EncryptedKey element and provides information to a recipient about what keying material to use in validating a signature or decrypting encrypted data.
The KeyInfo element is optional: it can be attached in the message, or be delivered through a secure channel.
XML Encryption is different from and unrelated to Transport Layer Security, which is used to send encrypted messages over the internet.
reported that this specification has severe security concerns. In response to this, the specification of XML Encryption 1.1 published in 2013 included a Galois/Counter Mode block cypher algorithm.