title: Replace a Number with a Random Number
body: <p>I want to make my own little encryption (it not must be secure).
  I thought it would be a good idea, if the entered password would be converted to binary and then I want to change all the 1 to (2 | 3 | 9 | 7) so if we had </p>
  
  <blockquote>
    <p>1101 = 2907 | 9703 ... and so on</p>
  </blockquote>
  
  <p>So if we would enter 9703 we could decrypt it to 1101 again.</p>
  
  <p>But I can’t find a Method to Replace these. 
  The Replace() Method would only do this: </p>
  
  <blockquote>
    <p>1101 -> 2202 | 1101 -> 9909</p>
  </blockquote>
  
  <p>And yes, i know that is not a good Method to encrypt something but I just want to code a very simple encryption on my own.</p>
  
  <pre><code>int[] replace_Ones = { 2, 3, 9, 7 };
  
  int ServerEncryption = 1101010000111001;
  
  ServerEncryption.Replace(1, 2);
  </code></pre>