title: How to calculate XOR with offset?
body: <p>I want to do a XOR calculation with different offset to list in calculation.</p>
  
  <p>Example :</p>
  
  <pre><code>key = [0, 1, 0]
  text = ["0", "1", "0", "1", "0", "1", "0", "1", "1", "1"]
  </code></pre>
  
  <p>the XOR calculation: </p>
  
  <pre><code>key[0] ^ text[0] ; 
  key[1] ^ text[1] ; 
  key[2] ^ text[2] ; 
  key[0] ^ text[3] ; 
  key[1] ^ text[4] ; 
  key[2] ^ text[5] ; 
  key[0] ^ text[6] ; 
  key[1] ^ text[7] ; 
  key[2] ^ text[8] ;
  key[0] ^ text[9] ;
  </code></pre>
  
  <p>How to do this ?</p>