Re: binary data and filterchain framework [was encrypting/decrypting]

2006-06-20 Thread Alexey N. Solofnenko
hexa looking like this : F6A310... This solves the issue. Regards, Antoine Original-Nachricht Datum: Tue, 20 Jun 2006 09:39:23 -0700 Von: "Alexey N. Solofnenko" <[EMAIL PROTECTED]> An: Ant Users List Betreff: Re: binary data and filterchain framework [was encry

Re: Re: binary data and filterchain framework [was encrypting/decrypting]

2006-06-20 Thread Antoine Levy-Lambert
-Nachricht Datum: Tue, 20 Jun 2006 09:39:23 -0700 Von: "Alexey N. Solofnenko" <[EMAIL PROTECTED]> An: Ant Users List Betreff: Re: binary data and filterchain framework [was encrypting/decrypting] > That is why I put a note to use hexadecimal conversion for e

Re: binary data and filterchain framework [was encrypting/decrypting]

2006-06-20 Thread Alexey N. Solofnenko
That is why I put a note to use hexadecimal conversion for encrypted strings. public static String asHex(byte buf[]) { if (buf==null) return null; StringBuffer strbuf=new StringBuffer(buf.length*2); for (int i=0, l=buf.length; i Hey, I found something useful. The problem in the

binary data and filterchain framework [was encrypting/decrypting]

2006-06-20 Thread Antoine Levy-Lambert
Hey, I found something useful. The problem in the round trip binary data ===> string ===> binary data is that in standard western character sets, there are a lot of slots which are marked "undefined". I had for instance a problem with 0x81 (decimal 129) which was transformed into 0x3f (question