Skip to content

Instantly share code, notes, and snippets.

@chiefjester
Forked from davidgilbertson/md5-hash-in-node.js
Created December 24, 2016 07:24
Show Gist options
  • Save chiefjester/0978c207150d4a9a2cdf785ecbf9ea73 to your computer and use it in GitHub Desktop.
Save chiefjester/0978c207150d4a9a2cdf785ecbf9ea73 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