Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.security > #49 > unrolled thread

AES Encryption and saving

Started bypavel.orehov@gmail.com.remove-dii-this
First post2011-04-27 16:07 +0000
Last post2011-04-27 16:07 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.security


Contents

  AES Encryption and saving pavel.orehov@gmail.com.remove-dii-this - 2011-04-27 16:07 +0000
    Re: AES Encryption and sa "Tomislav Petrovic" <tomislav.petrovic@THRWHITE.remove-dii-this> - 2011-04-27 16:07 +0000

#49 — AES Encryption and saving

Frompavel.orehov@gmail.com.remove-dii-this
Date2011-04-27 16:07 +0000
SubjectAES Encryption and saving
Message-ID<1194260705.867908.326340@d55g2000hsg.googlegroups.com>
  To: comp.lang.java.security
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;

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#52 — Re: AES Encryption and sa

From"Tomislav Petrovic" <tomislav.petrovic@THRWHITE.remove-dii-this>
Date2011-04-27 16:07 +0000
SubjectRe: AES Encryption and sa
Message-ID<2p4b05xg0p.ln2@news.envox-lab.hr>
In reply to#49
  To: comp.lang.java.security
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.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.security


csiph-web