Skip to content

camshaft/hash-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hash-file

MD5 a file in the browser using the FileReader api

Installation

$ component install CamShaft/hash-file

API

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
    })
  });

License

MIT

About

MD5 a file in the browser using the FileReader api

Resources

Stars

Watchers

Forks

Packages

No packages published