当前位置:   article > 正文

一刀工具箱 - 密码生成器_随机生成账号密码工具

随机生成账号密码工具

随机密码生成器 - 最专业的随机密码在线生成网站,可根据选择生成不同字符不同长度的随机密码。

在线代码

  1. buildClick(){
  2. let params = this.params;
  3. for (var e = this.value, a = "abcdefghijklmnopqrstuvwxyz", t = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", r = "0123456789", i = "!@#$%^&*()_+~`|}{[]:;?><,./-=", n = "", o = n; n.length < e; ){
  4. let entity1 = Math.ceil(a.length * Math.random() * Math.random());
  5. let entity2 = Math.ceil(r.length * Math.random() * Math.random());
  6. let entity3 = Math.ceil(i.length * Math.random() * Math.random());
  7. let entity4 = Math.ceil(t.length * Math.random() * Math.random());
  8. params.chkl && n.length < e && (n += a.charAt(entity1));
  9. params.chku && n.length < e && (n += t.charAt(entity4));
  10. params.chkn && n.length < e && (n += r.charAt(entity2));
  11. params.chksc && n.length < e && (n += i.charAt(entity3));
  12. 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);
  13. }
  14. this.item = n;
  15. }

生成随机密码-密码生成器 - 一刀工具箱APP随机密码生成器-最专业的随机密码在线生成网站,可根据选择生成不同字符不同长度的随机密码。icon-default.png?t=M5H6https://tools.yidaotool.com/password 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小惠珠哦/article/detail/897088
推荐阅读
相关标签
  

闽ICP备14008679号