Generate encrypted data (wcs_encrypt)

+

Search Tips   |   Advanced Search

The wcs_encrypt utility encrypts sensitive information with a given merchant key. The value of the merchant key could be specified through command line arguments or retrieved from calling out to the Key Locator Framework using the "-k" parameter. If none of these parameters are specified, it will encrypt the sensitive data with the default merchant key.

 

Syntax

 

Parameter values

text

The character sequence to encrypt

merchant_key

(Optional) The value of the merchant key to encrypt the data. Specify this parameter if the merchant key is not retrieved from the Key Locator Framework.

-k keys_config_file_location

(Optional) The merchant key is to be retrieved from the Key Locator Framework using the specified key configuration file. The absolute path of the file must be specified.

 

Example 1

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

wcs_encrypt abc 1234567890abcdef

 

Example 2

Encrypt data when merchant key is retrieved from the Key Locator Framework: wcs_encrypt abc -k /WebSphere/CommerceServer/instances/xml/CustomKeys.xml

 

Related concepts

Key Locator Framework (KLF)