Encoding passwords with WebSphere Application Server
If you must change a user name and password in a properties file after installation, use these steps to encode the new password.
About this task
- Create a text file called mypassword.txt.
- Add this line to the file:
mypassword=user_passwordand save the file.
- Run the following command to encode the password value:
- For Microsoft
$NODE_HOME\bin\PropFilePasswordEncoder.bat path\mypassword.txt mypassword
- For Linux® and UNIX:
$NODE_HOME/bin/PropFilePasswordEncoder.sh path/mypassword.txt mypassword
$NODE_HOMErepresents the home directory of the WebSphere Application Server node and
pathrepresents the directory location of the mypassword.txt file.
- For Microsoft Windows:
- Open the mypassword.txt file and copy the encoded password value to the password field in your properties file.