xml.Encryption.EncryptString

Encrypts the string str using the symmetric key key, and returns the encrypted string encoded in BASE64.

Syntax

xml.Encryption.EncryptString(
   key xml.CryptoKey,
   str STRING )
  RETURNING rstr STRING
  1. key is the key.
  2. str is the string to be encrypted.

Usage

The key must be of usage: encryption.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).