title: C# How to XOR bytes as text file is read into a string
body: <p>I need to prevent some kids from modifying json text files and putting "fartface" in them. My current code gets a string from the text file like so: </p>
  
  <pre><code>using (StreamReader file = File.OpenText(basePath + "jsontxt"))
  {
      string s = file.ReadToEnd();
  </code></pre>
  
  <p>I can apply an XOR to my jsontxt files which is sufficient to prevent malicious fart jokes, but in my wpf C# app I'm not sure how to implement the byte XOR as the file is read into a string.</p>