Created
February 6, 2020 18:28
-
-
Save sdesalas/325d85c9b90e5a83050f1ee334d2e440 to your computer and use it in GitHub Desktop.
Native MD5 in node.js
This file contains hidden or 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
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