title: How to generate an MD5 file hash in JavaScript/Node.js?
body: <p>How to write <code>functionToGenerateMD5hash</code> for this code? I already have <code>fileVideo</code> and I need to send the corresponding md5 hash to the server by clicking on the button.</p>
  <pre><code>$(&quot;#someButton&quot;).click(function() {
  var fr = new FileReader();      
  fr.onload = function(e) {            
      string md5 = functionToGenerateMD5hash(e.target.result);
      // send md5 here
  };       
  fr.readAsArrayBuffer(fileVideo);
  </code></pre>
  <p>Also, can you use this to generate a MD5 hash in Node.js?</p>