vue使用md5实现密码加密
时间:2020-06-12 13:03:47
收藏:0
阅读:135
使用npm安装: npm install crypto --save
在需要使用的文件中引用crypto import crypto from ‘crypto‘
使用方法:
var md5 = crypto.createHash("md5"); md5.update(this.password) //需要加密的密码 var password = md5.digest(‘hex‘); //password 加密完的密码
原文:https://www.cnblogs.com/yxkNotes/p/13098210.html
评论(0)