Last active
August 29, 2015 14:05
-
-
Save rashad612/062622a6505c9f55236f to your computer and use it in GitHub Desktop.
NodeJS Simple md5 reusable module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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