Skip to content

Instantly share code, notes, and snippets.

@selfish
Last active December 20, 2017 15:04
Show Gist options
  • Save selfish/770d2ed21941385bf8f4c08a540691f6 to your computer and use it in GitHub Desktop.
Save selfish/770d2ed21941385bf8f4c08a540691f6 to your computer and use it in GitHub Desktop.
Simple MD5 hash in your Node.js application. Not recommended for security.
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