Skip to content

Instantly share code, notes, and snippets.

@baamenabar
Forked from davidgilbertson/md5-hash-in-node.js
Created July 24, 2017 11:35
Show Gist options
  • Save baamenabar/2c51e0301b6b1bd1ad5c92e5fe59f513 to your computer and use it in GitHub Desktop.
Save baamenabar/2c51e0301b6b1bd1ad5c92e5fe59f513 to your computer and use it in GitHub Desktop.
const fileHash = crypto.createHash('md5').update(fileContents).digest('hex');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment