ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Moole Bhaskara R <>
Subject RE: How do I encrypt the properties for Ant
Date Wed, 14 May 2003 15:11:38 GMT

I found a previous post without any further discussion on this subject.
Anybody has code to use digest to encrypt and decrypt, as suggested in the
following post?


PS: Thanks for your suggestion Rob. It does not work for my situation. SCP
is only for secure copying. Command line option is not possible because it
reveals the passwords as well.

[prev in list] [next in list] [prev in thread] [next in thread] 

List:     ant-user
Subject:  AW: ant build file security
From:     Jan.Materne () rzf ! fin-nrw ! de
Date:     2003-04-30 4:52:18
[Download message RAW]

I can see the problem.
Never used digest, but maybe that scenario works:

	<property name="managerapp.password"
value="GHXLC_digestEncodedPwd_OIWE" />
      <echo file="tmp" message="${managerapp.password}" />
	<java ... Decode the String in file 'tmp' ... />
	<loadfile property="managerapp.password.decrypted" srcFile="tmp" />

But I don¬°=A6t know how to work with digest, so you have to find line 3 for
your own :-)

If it works - let us now.

Jan Materne

> -----Urspr√ľngliche Nachricht-----
> Von: Trevor Luo [ITSD] []
> Gesendet am: Mittwoch, 30. April 2003 06:31
> An:
> Betreff: ant build file security
> Hi,
> I am using ant for a while. Recently, I found a security 
> exposure in the
> build.xml file:
> <property name="managerapp.userid"    value="admin"/>
> <property name="managerapp.password"  value="secret"/>
> As you see, the password is plain in text. How can I use the  digest
> encoding algorithm? Anyone can share this with me?
> FYI: I am using tomcat 4.18 under linux 7.2.
> Thanks in advance!
> Trevor
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:


[prev in list] [next in list] [prev in thread] [next in thread] 

-----Original Message-----
From: Anderson, Robert H - MWT []
Sent: Tuesday, May 13, 2003 5:48 PM
To: 'Ant Users List'
Subject: RE: How do I encrypt the properties for Ant

Try using the scp task with public key authentication. Or just pass in the
passwords on the command line....

ant -Dftp.password=something ...

-Rob Anderson

-----Original Message-----
From: Moole Bhaskara R []
Sent: Tuesday, May 13, 2003 2:44 PM
To: ''
Subject: How do I encrypt the properties for Ant


I am trying to create an Ant xml build file to compile, jar, sing the jars,
ftp the jars, and deploy them to WebSphere. last three steps require
authentication information (key store passwords, ftp user & password, WAS
admin user and password). I am prohibited from storing them in a plain text
file. How do I encrypt them and still make them available to Ant? I
considered creating a taskdef java class and distribute only the class file
to the build machines. I could not find a way to read the class attributes
into Ant.

I appreciate any information in this regard.

Thank you,

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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message