NodeJS 笔记

1、使用nodejs生成md5

var crypto = require('crypto');
function md5 (text) {
  return crypto.createHash('md5').update(text).digest('hex');
};

 

posted @ 2013-10-28 08:40  长城的草  阅读(281)  评论(0编辑  收藏  举报