"Jim" <ji******@hotmail.com> wrote in message
news:94**************************@posting.google.c om...
Hi,
Does anyone know of an available java class that will encrypt to
cipher text consisting of only printable ascii characters? One of the
things I need it for is to encrypt strings that will then be used as
filenames.
TIA, Jim
maybe you can use this
it converts binary to base64 which consists
of only printable characters
// Convert a byte array to base64 string
byte[] buf = new byte[]{0x12, 0x23};
String s = new sun.misc.BASE64Encoder().encode(buf);