xorCipher(data: Uint8Array,offset: number): Uint8Array
Applies the Baichuan XOR cipher. The cipher is its own inverse, so the same call encrypts and decrypts.
Each byte is XORed with key[(offset + i) % 8] and with offset, where the
key is 1f 2d 3c 4b 5a 69 78 ff and offset is the message's channel id.
data: Uint8Array
The bytes to encrypt or decrypt.
A new array with the transformed bytes.