会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
武卡卡的个人博客
博客园
首页
新随笔
联系
订阅
管理
2019年9月7日
Express - 采用bcryptjs进行密码加密
摘要: 1.安装bcryptjs模块 2.在需要加密的模块中引入bcryptjs库 require('bcryptjs'); 实战 : /** * 定义数据库模型 */ const userSchema = new mongoose.Schema({ username:{ type:String, uniq
阅读全文
posted @ 2019-09-07 21:54 武卡卡
阅读(1358)
评论(3)
推荐(2)
编辑
公告