title: Int Array to Base64 in C# like sjcl.codec.base64.fromBits does
body: <p>In JavaScript, doing this:</p>
  
  <pre><code>var numbers = new Array(1042147201, -1682263442, -1463053899, 1834416100)
  sjcl.codec.base64.fromBits(numbers)
  </code></pre>
  
  <p>Return "Ph3ngZu6sm6oy5G1bVb35A==", but doing this in C#:</p>
  
  <pre><code>var numbers = new[] { 1042147201, -1682263442, -1463053899, 1834416100 };
  var byteNumbers = new byte[numbers.Length * sizeof(int)];
  Buffer.BlockCopy(numbers, 0, byteNumbers, 0, byteNumbers.Length);
  Convert.ToBase64String(byteNumbers);
  </code></pre>
  
  <p>Return "gecdPm6yupu1kcuo5PdWbQ=="<br>
  Why is the result different and what do I have to do to get the same result like in JavaScript?</p>