Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / November 2007

Tip: Looking for answers? Try searching our database.

AES Encryption and saving to an XML file

Thread view: 
pavel.orehov@gmail.com - 05 Nov 2007 11:05 GMT
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;
Tomislav Petrovic - 08 Nov 2007 10:25 GMT
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).

Signature

Tomy.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.