strxor Function

Function:

Calculates exclusive OR (XOR) on data in str1 and str2 arguments.

Syntax:

strxor(byref str1 as string, byref str2 as string) as string

Returns:

Result of logical XOR operation.

See Also:

strand, stror


Part

Description

str1

Argument 1.

str2

Argument 2.


Details

This function treats data in str1 and str2 as two byte arrays. The logical XOR operation is performed on corresponding byte pairs (first byte of str1 XOR first byte of str2, etc.).

If one of the arguments contains less bytes, then this argument is padded with zeroes prior to performing the logical XOR operation.


strxor Function

Details