AnsweredAssumed Answered

Symmetric Encryption-Decryption of XML tags

Question asked by SIDDHARTHJAISWAL on Dec 23, 2016

Hi,

 

 I am facing issue in symmetric encryption-decryption of XML data. Below is the explanation:

 

Input Data:

<AXML><TAG1>ABC</TAG1><TAG2>DADASD</TAG2><TAG3>ASDQAED</TAG3></AXML>

Step 1: Symmetrically encrypted it using tactical symmetric assertion with 16 bit key. Encryption algo it AES/CBC/PKCS5.

 

While decrypting the encrypted values, received in Step1, using tactical symmetric assertion with same 16 bit key (used in Step 1), I am getting following output:

AXMLTAG1ABC/TAG1TAG2DADASD/TAG2TAG3ASDQAED/TAG3/AXML

 

However the expected output was the input data value itself. Please help. Am I missing any step in decryption or encryption?

 

Thanks

 

Outcomes