Exploring XML Encryption, Part 1

Demonstrating the secure exchange of structured data

Return to article.

Listing 7. Second party sends back the randomly generated secret key encrypted with public key of first party
<?xml version='1.0' ?> 
<SecureCommunicationDemonstration>
	<EncryptedKey  CarriedKeyName="Imran Ali" xmlns='http://www.w3.org/2001/04/xmlenc#'>
		 <EncryptionMethod   Algorithm= "http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
		 	<CipherData>
				<CipherValue>xyza21212sdfdsfs7989fsdbc</CipherValue>
			</CipherData>   
	</EncryptedKey>
</SecureCommunicationDemonstration>

Return to article.