title: Different results generating SHA256 hash with .Net and react native library (same input)
body: <p>In .Net I'm generating a hash this way:</p>
  
  <pre><code>Convert.ToBase64String(SHA256.Create().ComputeHash(Encoding.UTF8.GetBytes("123456")));
  </code></pre>
  
  <p>The result is: "jZae727K08KaOmKSgOaGzww/XVqGr/PKEgIMkjrcbJI="</p>
  
  <p>Now I'm generating a hash in a React Native app with this <a href="https://github.com/itinance/react-native-sha256" rel="nofollow noreferrer">library</a>:</p>
  
  <pre><code>import { sha256 } from 'react-native-sha256';
  return await sha256('123456');
  </code></pre>
  
  <p>And the result is: "8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92"</p>
  
  <p>Not sure what I'm doing wrong...</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>Final solution (thanks Martin Backasch):</p>
  
  <pre><code>var inputBytes = Encoding.UTF8.GetBytes("123456");
  var hashBytes = SHA256.Create().ComputeHash(inputBytes);
  return BitConverter.ToString(hashBytes).Replace("-", string.Empty).ToLower();
  </code></pre>