Generate encrypted data (wcs_encrypt)

The wcs_encrypt utility encrypts sensitive information with a merchant key. The value of the merchant key is specified through command-line arguments or retrieved from calling out to the Key Locator Framework using the -k parameter. If the merchant key is not specified and the parameter -k is not used, the utility encrypts the sensitive data with an internal encryption key.


Syntax


Parameter values


Example 1

Encrypt data when merchant key is not retrieved from the Key Locator Framework:


Example 2

Encrypt data when merchant key is retrieved from the Key Locator Framework:


Example 3

Encrypt data when the merchant key is not specified. In this case, an internal encryption key is used, which is the same, regardless of the version of WebSphere Commerce. For security reasons, this key value is not shared. This usage is typically for storing encrypted passwords in configuration files:

The ASCII encrypted string should be stored in the configuration file.


Related tasks
Running utilities from the Utility server Docker container


Related reference
Generate WebSphere Commerce encrypted password (wcs_password)
Utilities