Skip to content

Instantly share code, notes, and snippets.

@sdesalas
Created February 6, 2020 18:28
Show Gist options
  • Save sdesalas/325d85c9b90e5a83050f1ee334d2e440 to your computer and use it in GitHub Desktop.
Save sdesalas/325d85c9b90e5a83050f1ee334d2e440 to your computer and use it in GitHub Desktop.
Native MD5 in node.js
var crypto = require('crypto');
module.exports = function(data) {
return crypto.createHash('md5').update(data).digest("hex");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment