Skip to content

Instantly share code, notes, and snippets.

@rashad612
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rashad612/062622a6505c9f55236f to your computer and use it in GitHub Desktop.
Save rashad612/062622a6505c9f55236f to your computer and use it in GitHub Desktop.
NodeJS Simple md5 reusable module
module.exports = function(string) {
var md5 = require('crypto').createHash('md5');
md5.update(string);
return md5.digest('hex');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment