crypto模块: crypto模块:封装了一系列密码学相关的功能 下载该模块:npm install --save crypto使用: crypto.createHash('md5').update(加密数据).digest('hex');示例: