IBM WebSphere - Decode XOR password

by
Jeremy Canfield |
Updated: September 01 2022
| IBM WebSphere articles
The security.xml file, such as /opt/WebSphere/AppServer/profiles/your_profile/config/cells/your_cell/security.xml, contains "xor" encrypted passwords, like this.
serverPassword="{xor}Gi58JSwfODJuFQ=="
bindPassword="{xor}CmcYbTc1aSVvJy5tEmc="
The following Java command can then be used to decode the "xor" passwords into cleartext.
java -classpath /opt/WebSphere/AppServer/plugins/*:/opt/WebSphere/AppServer/lib/* com.ibm.ws.security.util.PasswordDecoder {xor}Gi16ABcdAApuAB=
Which should return something like this.
encoded password == "{xor}Gi16ABcdAApuAB=", decoded password == "Er%_HB_U1_@"
Did you find this article helpful?
If so, consider buying me a coffee over at
Comments
December 28 2022 by Luis Gomez
Thank you