title: Convert String to Int and back to String
body: <p>I am trying to convert an email <code>String</code> to <code>Int32</code> then hash it using <a href="http://www.hashids.org/" rel="nofollow">HashidsNet</a>. </p>
  
  <p>Finally, I revert the process to get the email again ... I tried the following:</p>
  
  <pre><code>HashidsNet.Hashids hash = new HashidsNet.Hashids();
  String email = "john.smith@xyz.com";
  Byte[] bytes = Encoding.UTF8.GetBytes(email);
  Int32 number = BitConverter.ToInt32(bytes, 0);
  String hashed = hash.Encrypt(number);
  Int32[] numbers = hash.Decrypt(hashed);
  Byte[] newBytes = BitConverter.GetBytes(numbers[0]);
  String newEmail = Encoding.UTF8.GetString(newBytes);
  </code></pre>
  
  <p>Somehow <code>newEmail</code> becomes only <code>"john"</code>. </p>
  
  <p>What am I missing?</p>