Exploring XML Encryption, Part 1

Demonstrating the secure exchange of structured data

Return to article.

Listing 9. Using the <CipherReference> element to refer to external encrypted data
<?xml version='1.0' ?> 
<EncryptedData   xmlns='http://www.w3.org/2001/04/xmlenc#'  
				Type='http://www.w3.org/2001/04/xmlenc#Element'>
	<ds:KeyInfo xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>
	     	<ds:KeyName>Imran ali</ds:KeyName>
	</ds:KeyInfo>
	<CipherData>
		<CipherReference URI="www.waxsys.com/secureData/waxFile.txt"/>
	</CipherData>
</EncryptedData>

Return to article.