title: How to fill string with repeating it characters by text length?
body: <p>My <code>text</code> has 6 letters, my <code>key</code> has 4 letters. After XOR I get <code>newText</code> with only 4 letters. How can I make my <code>key</code> longer (repeat it till text length?</p>
  
  <p>for ex.: <code>string text = "flower"</code>,<code>string key = "hell"</code> I want to make my string key = "hellhe" and so on...) </p>
  
  <pre><code>private string XorText(string text,string key)
          {
              string newText = "";
              for (int i = 0; i &lt; key.Length; i++)
              {
                  int charValue = Convert.ToInt32(text[i]);
                  int keyValue = Convert.ToInt32(key[i]);
                  charValue ^= keyValue % 33;
                   newText += char.ConvertFromUtf32(charValue);
              }
              return newText;
          }
  </code></pre>