security.HexBinary.Xor

Computes the exclusive disjunction between two hexadecimal encoded strings.

Syntax

security.HexBinary.Xor(
   hexstr1 STRING,
   hexstr2 STRING )
  RETURNING result STRING
  1. hexstr1 is a first string in hexadecimal.
  2. hexstr1 is a second string in hexadecimal.
  3. result is the xor result encoded in hexadecimal.

Usage

Decodes the two given string and does an exclusive disjunction between the two binary and returns the result in hexadecimal.

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).