Command crypto.xor

The command crypto.xor is used to perform a XOR binary operation on the bytes of two strings.

Parameters

  1. buffer1 [string]
    Hexadecimal string that will be used on the XOR operation.
  2. buffer2 [string]
    Hexadecimal string that will be used on the XOR operation.
  3. size [integer]
    Buffer size in bytes.
  4. variablereturn [string]
    Variable that will store the hexadecimal return value of the XOR command.

Example


In the example above, buffer1 123456 is different from buffer2 123450 making that the XOR operation returns the result (hexadecimal) 000 006 000 000.