As far as I know the Jave Encrytion extension JCE doesn't offer such a method.
If I use e.g. Blowfish in JCE it produces a ciphertext which contains Linebreaks (<CR>).
So it is not suitable.
It is not required to be ultra secure.
Does someone know an easy way to accomplish that ?
Thank you
Thorsten
"Thorsten Meininger" <t_me...@hotmail.com> schrieb im Newsbeitrag
news:b1g5a3$7bt$05$1...@news.t-online.com...
Convert each byte into 2 ASCII characters representing the hex
value of the byte, from "00" to "FF."
"Thorsten Meininger" <t_me...@hotmail.com> wrote in message
news:b1g5a3$7bt$05$1...@news.t-online.com...
Encrypt the string using something like Blowfish, then Base64-encode the
result.
kenny
A really easy way would be to base64 encode the encrypted String. Of
course, if you just want to obfuscate the String you could just use
the base64 encoding to start with and be done with it.