Decode/Encode websphere database password

  • Locate the file at /usr/IBM/WebSphere/AppServer/profiles/AppSrvMars01/config/cells/mars01Cell01/security.xml

  • Find the “authDataEntries” tag and then get the password attribute.

  • Open console and goto directory /usr/IBM/WebSphere/AppServer,
    encode:

    1
    java -cp plugins/com.ibm.ws.runtime.jar:lib/bootstrap.jar:runtimes/com.ibm.jaxws.thinclient_7.0.0.jar com.ibm.ws.security.util.PasswordEncoder password

    decode:

    1
    java -cp plugins/com.ibm.ws.runtime.jar:lib/bootstrap.jar:runtimes/com.ibm.jaxws.thinclient_7.0.0.jar com.ibm.ws.security.util.PasswordDecoder {xor}Lz4sLCgwLTs=

Reference:
http://www.sysman.nl/wasdecoder/
http://stackoverflow.com/questions/7885134/how-to-recover-admin-password-in-websphere-portal-v7
http://weblogic-wonders.com/weblogic/tag/com-ibm-ws-bootstrap-raswsloggerfactory/