If you must change a user name and password in a properties
file after installation, you can use this task to encrypt the new
password.
About this task
To prevent the password from being stored in clear text in
your properties file, you can use WebSphere® Application
Server to
encrypt the password.
Procedure
- Create a text file called mypassword.txt.
- Add this line to the file:
mypassword=user_password
and
save the file.
- Run the following command to encode the password value:
- For Microsoft Windows:
$NODE_HOME\bin\PropFilePasswordEncoder.bat path\mypassword.txt
mypassword
- For Linux and UNIX:
$NODE_HOME/bin/PropFilePasswordEncoder.sh path/mypassword.txt
mypassword
Where $NODE_HOME
represents
the home directory of the WebSphere Application
Server node
and path
represents the directory
location of the mypassword.txt file.
- Open the mypassword.txt file and copy
the encrypted password value to the password field in your properties
file.