ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <>
Subject binary data and filterchain framework [was encrypting/decrypting]
Date Tue, 20 Jun 2006 16:10:35 GMT

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

I found out that the Arabic Character Set Cp1256 has all slots used, so can be used as a vehicle
to do round trips with binary data using the filterchain framework. 



[1] this char set has empty slots
[2] this char set has no empty slots.

-------- Original-Nachricht --------
Datum: Tue, 20 Jun 2006 09:13:49 -0400
Von: Antoine Levy-Lambert <>
An: Ant Users List <>
Betreff: Re: Ant tasks to encrypt or decrypt passwords from property files

> Hello Alexey,
> I have written something based on your code.
> Actually, I wrote an ant task to create the key first.
> I wanted to create filters (pluggable into filterchains) to encrypt and
> decrypt, but I do not get that to work.
> I might do an ant task to encrypt and a sort of loadproperties clone
> which would take an encrypted file.
> When I use filterchains and loadproperties, the decrypting does not
> work, some of the bytes read by loadproperties (or the filterchain
> framework) are not the same as the original.
> Unfortunately, I am not litterate enough with streams, bytes, binary
> operators and the like to know how to fix this. A shame, the solution
> with filters would be elegant.
> Regards,
> Antoine

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message