//首先加载node自带的加密模块
var crypto = require(‘crypto‘)
//使用方法
var pwd = ‘abc123’
var md5 = crypto.createHash(‘md5‘)
var newpwd = md5.update(pwd).digest(‘hex‘)
原文地址:https://www.cnblogs.com/suneil/p/11307324.html
时间: 2024-10-09 04:33:13
//首先加载node自带的加密模块
var crypto = require(‘crypto‘)
//使用方法
var pwd = ‘abc123’
var md5 = crypto.createHash(‘md5‘)
var newpwd = md5.update(pwd).digest(‘hex‘)
原文地址:https://www.cnblogs.com/suneil/p/11307324.html