• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Encryption doubt

 
Asit Baran
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i encrypt any original XML document it would become:

Now if i encrypt it again(Super Encryption), it would become:


Now, my doubt is, for both the case, structure is exactly same. How could a receiver know whether to decrypt once or twice? Is there any way to specify the level of encryption the sender is applying?
 
srinivas srinivasmeenavalli
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Receiver would know based through cipher key.
newEncyptedData would be input to find out whether decrypted once or twice.
I am not 100% sure .
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
You can use WS-Policy (introduction: http://en.wikipedia.org/wiki/Ws-policy) in your service WSDL to advertise what policies your service has regarding, for instance, security. There are libraries in the Metro web service stack which will give you client-side support for WS-Policy without having to write any code.
Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic