摘要: 前端用js登录失败次数上线,倒计时禁止登录 // 取出输入密码错误的次数 let error_times = window.localStorage.getItem('userCode') // 超过登录次数 if(error_times >= 3){ this.disabled = true // 阅读全文
posted @ 2022-07-06 22:55 小白张先生 阅读(1267) 评论(0) 推荐(0)
摘要: 前端怎么使用AES 实现对登陆密码的加密和解密 import crypto from 'crypto' // @version 1.0 aes-128-gcm 加密 // @params msg 为加密信息 key为32位的16进制key // @return 返回base64编码 export f 阅读全文
posted @ 2022-07-06 22:41 小白张先生 阅读(1349) 评论(0) 推荐(0)