Using the HTML5 File API and any JavaScript crypto library, how can I generate an MD5 hash of the file?
To read the file:
var reader = new FileReader();
reader.onload = function(e) {
var contents = e.target.result;
// What goes here?
};
reader.readAsBinaryString(data.files[0]);