IBM®
跳转到主要内容
    中国 [选择]    使用条款
 
 
Select a scope: Search for:    
    首页    产品    服务与解决方案     支持与下载    个性化服务    
跳转到主要内容

developerWorks 中国  >  XML  >

Exploring XML Encryption, Part 1

Demonstrating the secure exchange of structured data

developerWorks

Return to article.


Listing 4. Encrypting only the content in the CardId element
        
<?xml version='1.0' ?> 
<PurchaseOrder>
	<Order>
		<Item>book</Item>
		<Id>123-958-74598</Id>
		<Quantity>12</Quantity>
	</Order>
	<Payment>
		<CardId>
			<EncryptedData Type='http://www.w3.org/2001/04/xmlenc#Content'
     							xmlns='http://www.w3.org/2001/04/xmlenc#'>
				<CipherData>
					<CipherValue>A23B45C564587</CipherValue>
				</CipherData>
			</EncryptedData></CardId>
		<CardName>visa</CardName>
		<ValidDate>12-10-2004</CardName>
	</Payment>
</PurchaseOrder>
      

Return to article.

    关于 IBM 隐私条约 联系 IBM 使用条款