title: Different SHA1 Hash result between Java and C#
body: <p>I've a big problem.
  I using this C# function to encode my message:</p>
  
  <pre><code>byte[] buffer = Encoding.ASCII.GetBytes(file_or_text);
  SHA1CryptoServiceProvider cryptoTransformSHA1 = new SHA1CryptoServiceProvider();
  String hashText = BitConverter.ToString(cryptoTransformSHA1.ComputeHash(buffer)).Replace("-", "");
  </code></pre>
  
  <p>On java side, I use this snippet:</p>
  
  <pre><code>MessageDigest md = MessageDigest.getInstance("SHA-1");
  byte[] sha1hash = new byte[40];
  md.update(text.getBytes("iso-8859-1"), 0, text.length());
  sha1hash = md.digest();
  </code></pre>
  
  <p>My message is: Block|Notes|Text !£$%&amp;/()=?^€>&lt;{}ç°§;:_-.,@#ùàòè+</p>
  
  <p>I have this result:</p>
  
  <pre><code>(C#)   8EDC7F756BCECDB99B045FA3DEA2E36AA0BF0875
  (Java) 2a566428826539365bb2fe2197da91395c2b1b72
  </code></pre>
  
  <p>Can you help me please??
  Thanks...</p>