MD5 a file in the browser using the FileReader api
$ component install CamShaft/hash-file
var md5 = require('hash-file');
document
.getElementById("file")
.addEventListener("change", function() {
var file = this.files[0];
md5(file, function (err, hash) {
console.log(hash);
// 30b78548aae224e09290778216310053be
})
});
MIT