XML : Encode/encrypt XML in HTML value in of a hidden field.

I need to have a XML String in a HTML value of a hidden field.

  <input type="hidden" id="anyId" name="anyName"   value="<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;...?>    

I want to encode/encrypt the XML String before sending to the frontend because it should not be a normal readable text.

The encoding and decoding will be done in java.

Can anyone tell me which is the best way to do it and which frameworks/tools... I can use.

Thanks.

No comments:

Post a Comment