赞
踩
随机密码生成器 - 最专业的随机密码在线生成网站,可根据选择生成不同字符不同长度的随机密码。
在线代码
- buildClick(){
- let params = this.params;
- for (var e = this.value, a = "abcdefghijklmnopqrstuvwxyz", t = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", r = "0123456789", i = "!@#$%^&*()_+~`|}{[]:;?><,./-=", n = "", o = n; n.length < e; ){
- let entity1 = Math.ceil(a.length * Math.random() * Math.random());
- let entity2 = Math.ceil(r.length * Math.random() * Math.random());
- let entity3 = Math.ceil(i.length * Math.random() * Math.random());
- let entity4 = Math.ceil(t.length * Math.random() * Math.random());
- params.chkl && n.length < e && (n += a.charAt(entity1));
- params.chku && n.length < e && (n += t.charAt(entity4));
- params.chkn && n.length < e && (n += r.charAt(entity2));
- params.chksc && n.length < e && (n += i.charAt(entity3));
- o == n && (rand = Math.floor(4 * Math.random()) + 1, 1 == rand ? n += a.charAt(entity1) : 2 == rand ? n += t.charAt(entity4) : 3 == rand ? n += r.charAt(entity2) : 4 == rand && (n += i.charAt(entity3)), o = n);
- }
-
- this.item = n;
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。