Exploring XML Encryption, Part 1

Demonstrating the secure exchange of structured data

Return to article.

Listing 5. Encrypting arbitrary non-XML data (JPEG)
<?xml version='1.0' ?> 
<EncryptedData xmlns='http://www.w3.org/2001/04/xmlenc#'
			 Type='http://www.isi.edu/in-notes/iana/assignments/media-types/jpeg' >
	<CipherData>
		<CipherValue>A23B45C56</CipherValue>
	</CipherData>
</EncryptedData>

Return to article.