Last active
December 20, 2017 15:04
-
-
Save selfish/770d2ed21941385bf8f4c08a540691f6 to your computer and use it in GitHub Desktop.
Simple MD5 hash in your Node.js application. Not recommended for security.
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
var crypto = require('crypto'); | |
var data = "whatever"; | |
var hashedValue = 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