Skip to content

Instantly share code, notes, and snippets.

@tracend
Created June 19, 2012 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tracend/2957170 to your computer and use it in GitHub Desktop.
Save tracend/2957170 to your computer and use it in GitHub Desktop.
MD5 in Node.js - Courtesy of Chris Strom: http://japhr.blogspot.com/2010/06/md5-in-nodejs-and-fabjs.html
// Unique ID generator, based on date
uniq_id = require('crypto').
createHash('md5').
update("" + (new Date()).getTime()).
digest("hex");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment