AES Encryption and saving to an XML file

  • Follow


I am using AES encryption in order to ecrypt sensitive data and save
it to an XML file.
There are some sample for AES encryption at
http://www.java2s.com/Code/Java/Security/Basicsymmetricencryptionexample.htm

The problem is that the encypted String can't be saved to XML because
contain illegal for XML characters.

So my question is how can I encypt using AES but in a way so that the
output encrypted String will be possible for saving to an XML file.

Thanks,
Pave;

0
Reply pavel.orehov (12) 11/5/2007 11:05:05 AM

pavel.orehov@gmail.com said on 5.11.2007 12:05:
> So my question is how can I encypt using AES but in a way so that the
> output encrypted String will be possible for saving to an XML file.

Base64 encode binary data produced by AES (or any other encryption).

-- 
Tomy.
0
Reply Tomislav 11/8/2007 10:25:06 AM


1 Replies
463 Views

(page loaded in 0.032 seconds)

Similiar Articles:













7/25/2012 6:13:32 PM


Reply: