Created
June 19, 2012 23:38
-
-
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
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
// 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