XOR Raw Encoder and Decoder