NodeJS 笔记

1、使用nodejs生成md5

var crypto = require('crypto');
function md5 (text) {
  return crypto.createHash('md5').update(text).digest('hex');
};
原文地址:https://www.cnblogs.com/ccdc/p/3391700.html