Running {xor} encryption on your password
About this task
To {xor} encrypt your password, use the PropFilePasswordEncoder command located in the WAS_home/bin directory
of the external WebSphere Application Server.
Follow these steps:
- Open a new text file and write the following line:
string=your_password_in_plain_text - Save the file with a file_name of your choice.
- Run
PropFilePasswordEncoderas follows:
where:PropFilePasswordEncoder file_name string- file_name
- Is the name of the file with your password.
- string
- Is the string you used in the text file. This can be any
word you choose; for example,
password,mypwd,joe, and so on.
- When the command completes, open the text file again. The content
has changed to:
string={xor}your_encrypted_password - Copy your encrypted password, inclusive of the
{xor}characters, and paste it where required onto your property files.
For example, you want to encrypt your password
catamaran. Proceed as follows: - Open a text file and write the following:
mypasswd=catamaran - Save the file with name
encrfile.txt. - Run:
PropFilePasswordEncoder encrfile.txt mypasswd - Open
encrfile.txt. You find:mypasswd={xor}PD4rPjI+LT4x - Copy
{xor}PD4rPjI+LT4xand paste it where you need to.