title: Byte array cryptography in C#
body: <p>I want to create a nice cryptography using bitwise operators.
  However I fail to do so.</p>
  
  <p>I want it to have bitwise operators using a byte array to encrypt and decrypt my byte array.</p>
  
  <pre><code>public class Cryptographer
  {
      private byte[] Keys { get; set; }
  
      public Cryptographer(string password)
      {
          Keys = Encoding.ASCII.GetBytes(password);
      }
  
      public void Encrypt(byte[] data)
      {
          for(int i = 0; i &lt; data.Length; i++)
          {
              data[i] = (byte) (data[i] &amp; Keys[i]);
          }
      }
  
      public void Decrypt(byte[] data)
      {
          for (int i = 0; i &lt; data.Length; i++)
          {
              data[i] = (byte)(Keys[i] &amp; data[i]);
          }
      }
  }
  </code></pre>
  
  <p>I know this is wrong, thats why I need help.
  I simply want it to use 1 string to encrypt and decrypt all data.</p>