Administrator

Encrypting Property Values

You can encrypt property values in configuration files using an encryption tool. Passwords are the most commonly encrypted values, but you can encrypt any value.

Prerequisites

Enable encryption.

Procedure

  1. Go to <SMSBUILDER_HOME>/bin, and run:
    ../encrypt.sh <decryptionValue> <password>
    where:
    • <decryptionValue> is the value of decryptionkey, defined in system.properties.
    • <password> is the property value to encrypt.
    The result of running the encrypt.sh command is an encrypted and Base64-encoded value, for example:
    x9CJt8qwgXSuDN7FY21mVOIZ1WiwIRiJoX9CatjqQiYRPjmj7NdeAchigFmxQKX4
  2. In the configuration file, enter the encrypted value, prepended with {enc}, for example:
    password={enc}x9CJt8qwgXSuDN7FY21mVOIZ1WiwIRiJoX9CatjqQiYRPjmj7NdeAchigFmxQKX4

    {enc} alerts the configuration manager to unencrypt the property value before using it.