Generating WebSphere Commerce encrypted passwords

You can generate encrypted passwords in order to manually reset the password of a user from a command line. There are other tools (such as the ResetPassword command) that accomplish the same task. To manually reset the password, the administrator would take the encrypted password that is output by the utilities and update the LOGONPASSWORD field of the USERREG table. The administrator would also update the SALT field of the USERREG table with the chosen salt.

AIXLinuxSun Solaris Operating EnvironmentWindows WebSphere Commerce allows you to generate encrypted passwords. To generate encrypted passwords:

  1. AIXLinuxSun Solaris Operating Environment Go to the WC_installdir/bin directory.
    Windows Go to the WC_installdir\bin directory.
  2. Run the following script from a command line:

    Windowswcs_password.bat password SALT merchant_key

    AIXLinuxSun Solaris Operating Environment./wcs_password.sh password SALT merchant_key

    where:

    password
    The plain text password.
    SALT
    A random string that is used in the generation of a password. This is found in the SALT column of the USERREG database table for the particular user whose password is being updated. The SALT should be unique for each user.
    merchant_key
    The merchant key that was entered during instance creation.

i5/OSiSeries To change the encrypted password for shoppers, use the chgwcspwd.sh command.

  1. Start a QShell session by entering the following command: STRQSH.
  2. Navigate to the following directory: WC_installdir/bin
  3. Run the following script: chgwcspwd.sh (The usage parameters will be displayed.)
  4. Run the command again using the appropriate parameters.

Feedback