title: Computing MD5SUM of large files in C#
body: <p>I am using following code to compute MD5SUM of a file - </p>
  
  <pre><code>byte[] b = System.IO.File.ReadAllBytes(file);
  string sum = BitConverter.ToString(new MD5CryptoServiceProvider().ComputeHash(b));
  </code></pre>
  
  <p>This works fine normally, but if I encounter a large file (~1GB) - e.g. an iso image or a DVD VOB file - I get an Out of Memory exception.</p>
  
  <p>Though, I am able to compute the MD5SUM in cygwin for the same file in about 10secs.</p>
  
  <p>Please suggest how can I get this to work for big files in my program.</p>
  
  <p>Thanks</p>