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 with the appropriate error number.