code: public static final void decodeBuffer(byte[] data, byte encryptionCode)
     {
        for (int i = 0; i < data.length; i++)
        {
           data[i] = (byte) (data[i] ^ encryptionCode);
        }
     }
docs: This method decodes a byte array with the given encryption code
  using XOR encryption.
  
  @param data Source data
  @param encryptionCode Encryption code