How to encrypt passwords in the build.xml ant junit task in devtest

Document ID : KB000108160
Last Modified Date : 30/07/2018
Show Technical Document Details
Introduction:
 Is there a way to use encrypted password values in the build.xml when Devtest tests are executed via junit ant task?
Instructions:
To encrypt password,
In the local.properties files where junitlisa is to be run, add the following two properties lisa.ant.junit.user and lisa.ant.junit.password thus
lisa.ant.junit.user=<User_name>
lisa.ant.junit.password=<Password>

The password will be encrypted upon first use. Then, in the build.xml, modify the user and password values with
user="lisa.ant.junit.user" and password="lisa.ant.junit.password_enc"