• Perform XOR operation on two buffers and return the new buffer

    Parameters

    • data: Uint8Array

      Buffer to XOR

    • key: Uint8Array

      Key to XOR with

    Returns Uint8Array