Hash it out quick with Node.js (md5)

This is a quick how to in creating a simple MD5 hash in your Node.js application.  I am not recommending this for security or to be the best practice for protecting your data, so here is a little background.  Marvel comics just released an API at developer.marvel.com and one of the requirements is to pass them an MD5 hash of a timestamp, public key, and private key.  Being the geek I am I said okay and proceeded to do my thing.

This is so simple it might make you laugh.  To create an MD5 hash in Node.js… drumroll….

var data = "what ever secret I could think of";
var crypto = require('crypto');
var hashedValue = crypto.createHash('md5').update(data).digest("hex");