当前位置: 首页 > news >正文

怎么让自己的网站通过域名访问alexa排名分析

怎么让自己的网站通过域名访问,alexa排名分析,静态网站,网络和网站的区别需求#xff1a;想要生成位数不低于16的随机密码#xff0c;而且要包含大小写字母#xff0c;数字#xff0c;特殊字符四类 用别人的在线生成器#xff0c;生成的密码有个别没有数字或者特殊字符#xff0c;验证方式就是#xff0c;生成几个长度是4的密码#xff0c;看…需求想要生成位数不低于16的随机密码而且要包含大小写字母数字特殊字符四类 用别人的在线生成器生成的密码有个别没有数字或者特殊字符验证方式就是生成几个长度是4的密码看一下生成的密码是否都包含这四类 自己简单写了一个js版和java版的 特点1保证每个密码都包含四类实现方式先随机生成这四类各一个字符比如aA1*然后放到随机的位置上去最后给剩余的位置随机取一个字符。 特点2设置黑名单字符有的字体或者软件上显示大写i和小写L分不清如Il把这两个排除1可能也会分不清也可以修改源码加上黑名单。 特点3四种类型的字符出现的概率一样 js源码如下 html head /head body div iddata /div /body script function getRandom(start,end){// 随机数[start,end)return parseInt(Math.random()*(end-start)start); } function getRandomWithout(start,end,without){// 随机数[start,end) TODO var r parseInt(Math.random()*(end-start)start);if(without.includes(r)){return getRandomWithout(start,end,without);}return r; }var special [$,%,*,,-,,,.,[,]]; var blacklist [I,l]; // a-z:97-122 A-Z:65-90 数字:48-57 特殊符号: function getLetterLow(blacklist){var v String.fromCharCode(getRandom(97,123));if(blacklist.includes(v)){return getLetterLow(blacklist);}return v; } function getLetterUp(blacklist){var v String.fromCharCode(getRandom(65,91));if(blacklist.includes(v)){return getLetterUp(blacklist);}return v; } function getNumber(blacklist){var v String.fromCharCode(getRandom(48,58));if(blacklist.includes(v)){return getNumber(blacklist);}return v; } function getSpecial(blacklist){var v special[getRandom(0,special.length)];if(blacklist.includes(v)){return getSpecial(blacklist);}return v; }var length 16; var count 100; for(var i0;icount;i){var pwd new Array(length);var r_index new Array(4); // 随机的位置var r_index_index 0;var r_index_data new Object(); // 随机的位置上的数据// 随机一个小写字母并到随机位置var r1 getLetterLow(blacklist);var r1_index getRandom(0,length);r_index[r_index_index] r1_index;r_index_index;r_index_data[r1_index] r1;// 随机一个大写字母并到随机位置var r2 getLetterUp(blacklist);var r2_index getRandomWithout(0,length,r_index);r_index[r_index_index] r2_index;r_index_index;r_index_data[r2_index] r2;// 随机一个数字并到随机位置var r3 getNumber(blacklist);var r3_index getRandomWithout(0,length,r_index);r_index[r_index_index] r3_index;r_index_index;r_index_data[r3_index] r3;// 随机一个特殊字符并到随机位置var r4 getSpecial(blacklist);var r4_index getRandomWithout(0,length,r_index);r_index[r_index_index] r4_index;r_index_index;r_index_data[r4_index] r4;for(var j0;jlength;j){if(r_index.includes(j)){pwd[j] r_index_data[j];}else{var type getRandom(1,5);var data 0;if(type1){data getLetterLow(blacklist);}else if(type2){data getLetterUp(blacklist);}else if(type3){data getNumber(blacklist);}else if(type4){data getSpecial(blacklist);}pwd[j] data;}}var data document.getElementById(data);var pdocument.createElement(span);p.innerHTMLpwd.join();data.appendChild(p);data.appendChild(document.createElement(br)); }/script /html java代码如下 package com.kingdee.eas.myutil;import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map;public class RandomPasswordUtil {private static final char[] LetterLow { a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z };private static final char[] LetterUP { A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z };private static final char[] Number { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };private static char[] Special { !, #, $, %, *, , -, ,, ., ?, [, ] };private static ListString BlackList new ArrayListString();public static ListString getRandomPassword(int count, int length) {BlackList.add(I);BlackList.add(l);ListString list new ArrayListString();for (int i 0; i count; i) {char[] pwd new char[length];ListInteger index new ArrayListInteger();MapInteger, Character r_index_data new HashMapInteger, Character();// 随机一个小写字母并到随机位置char r1 getLetterLow(BlackList); // 数据int r1_index getRandom(0, length); // 位置index.add(r1_index);r_index_data.put(r1_index, r1);// 随机一个大写字母并到随机位置char r2 getLetterUp(BlackList); // 数据int r2_index getRandomWithout(0, length, index);// 位置index.add(r2_index);r_index_data.put(r2_index, r2);// 随机一个数字并到随机位置char r3 getNumber(BlackList); // 数据int r3_index getRandomWithout(0, length, index);// 位置index.add(r3_index);r_index_data.put(r3_index, r3);// 随机一个特殊字符并到随机位置char r4 getSpecial(BlackList); // 数据int r4_index getRandomWithout(0, length, index);// 位置index.add(r4_index);r_index_data.put(r4_index, r4);for (int j 0; j length; j) {if (r_index_data.containsKey(j)) {pwd[j] r_index_data.get(j);} else {int type getRandom(1, 5);char data 0;if (type 1) {data getLetterLow(BlackList);} else if (type 2) {data getLetterUp(BlackList);} else if (type 3) {data getNumber(BlackList);} else if (type 4) {data getSpecial(BlackList);}pwd[j] data;}}list.add(String.valueOf(pwd));}return list;}private static char getLetterLow(ListString blacklist) {char v LetterLow[getRandom(0, LetterLow.length)];if (blacklist.contains(v)) {return getLetterLow(blacklist);}return v;}private static char getLetterUp(ListString blacklist) {char v LetterUP[getRandom(0, LetterUP.length)];if (blacklist.contains(v)) {return getLetterUp(blacklist);}return v;}private static char getNumber(ListString blacklist) {char v Number[getRandom(0, Number.length)];if (blacklist.contains(v)) {return getNumber(blacklist);}return v;}private static char getSpecial(ListString blacklist) {char v Special[getRandom(0, Special.length)];if (blacklist.contains(v)) {return getSpecial(blacklist);}return v;}private static int getRandom(int start, int end) {return (int) (Math.random() * (end - start) start);}private static int getRandomWithout(int start, int end, ListInteger without) {int r (int) (Math.random() * (end - start) start);if (without.contains(r)) {return getRandomWithout(start, end, without);}return r;}public static void main(String[] args) {ListString list getRandomPassword(100, 4);for (String s : list) {System.out.println(s);}} }
文章转载自:
http://www.morning.hmqjj.cn.gov.cn.hmqjj.cn
http://www.morning.xtdtt.cn.gov.cn.xtdtt.cn
http://www.morning.rfldz.cn.gov.cn.rfldz.cn
http://www.morning.jwcmq.cn.gov.cn.jwcmq.cn
http://www.morning.fhntj.cn.gov.cn.fhntj.cn
http://www.morning.tzlfc.cn.gov.cn.tzlfc.cn
http://www.morning.cyfsl.cn.gov.cn.cyfsl.cn
http://www.morning.pmjw.cn.gov.cn.pmjw.cn
http://www.morning.ysgnb.cn.gov.cn.ysgnb.cn
http://www.morning.lhgkr.cn.gov.cn.lhgkr.cn
http://www.morning.mnsmb.cn.gov.cn.mnsmb.cn
http://www.morning.yjxfj.cn.gov.cn.yjxfj.cn
http://www.morning.xrrbj.cn.gov.cn.xrrbj.cn
http://www.morning.wxfgg.cn.gov.cn.wxfgg.cn
http://www.morning.hsklc.cn.gov.cn.hsklc.cn
http://www.morning.qwzpd.cn.gov.cn.qwzpd.cn
http://www.morning.dkfb.cn.gov.cn.dkfb.cn
http://www.morning.wxgd.cn.gov.cn.wxgd.cn
http://www.morning.ghzfx.cn.gov.cn.ghzfx.cn
http://www.morning.krywy.cn.gov.cn.krywy.cn
http://www.morning.zdfrg.cn.gov.cn.zdfrg.cn
http://www.morning.qrdkk.cn.gov.cn.qrdkk.cn
http://www.morning.lztrt.cn.gov.cn.lztrt.cn
http://www.morning.bcngs.cn.gov.cn.bcngs.cn
http://www.morning.fgqbx.cn.gov.cn.fgqbx.cn
http://www.morning.wjyyg.cn.gov.cn.wjyyg.cn
http://www.morning.tsnwf.cn.gov.cn.tsnwf.cn
http://www.morning.fpyll.cn.gov.cn.fpyll.cn
http://www.morning.lnckq.cn.gov.cn.lnckq.cn
http://www.morning.prjty.cn.gov.cn.prjty.cn
http://www.morning.xmxbm.cn.gov.cn.xmxbm.cn
http://www.morning.fmjzl.cn.gov.cn.fmjzl.cn
http://www.morning.qcfgd.cn.gov.cn.qcfgd.cn
http://www.morning.jrplk.cn.gov.cn.jrplk.cn
http://www.morning.kgcss.cn.gov.cn.kgcss.cn
http://www.morning.swkzk.cn.gov.cn.swkzk.cn
http://www.morning.mwmtk.cn.gov.cn.mwmtk.cn
http://www.morning.lyhrg.cn.gov.cn.lyhrg.cn
http://www.morning.mtrrf.cn.gov.cn.mtrrf.cn
http://www.morning.qbfs.cn.gov.cn.qbfs.cn
http://www.morning.sjbpg.cn.gov.cn.sjbpg.cn
http://www.morning.sgjw.cn.gov.cn.sgjw.cn
http://www.morning.crrmg.cn.gov.cn.crrmg.cn
http://www.morning.pmjhm.cn.gov.cn.pmjhm.cn
http://www.morning.mnygn.cn.gov.cn.mnygn.cn
http://www.morning.qgqck.cn.gov.cn.qgqck.cn
http://www.morning.kqglp.cn.gov.cn.kqglp.cn
http://www.morning.pfbx.cn.gov.cn.pfbx.cn
http://www.morning.gkfwp.cn.gov.cn.gkfwp.cn
http://www.morning.cklgf.cn.gov.cn.cklgf.cn
http://www.morning.qprtm.cn.gov.cn.qprtm.cn
http://www.morning.qrnbs.cn.gov.cn.qrnbs.cn
http://www.morning.lhytw.cn.gov.cn.lhytw.cn
http://www.morning.tkflb.cn.gov.cn.tkflb.cn
http://www.morning.fgxws.cn.gov.cn.fgxws.cn
http://www.morning.yixingshengya.com.gov.cn.yixingshengya.com
http://www.morning.fnpyk.cn.gov.cn.fnpyk.cn
http://www.morning.jxhlx.cn.gov.cn.jxhlx.cn
http://www.morning.mkfr.cn.gov.cn.mkfr.cn
http://www.morning.ljpqy.cn.gov.cn.ljpqy.cn
http://www.morning.ggtkk.cn.gov.cn.ggtkk.cn
http://www.morning.zqkms.cn.gov.cn.zqkms.cn
http://www.morning.jwdys.cn.gov.cn.jwdys.cn
http://www.morning.kpqjr.cn.gov.cn.kpqjr.cn
http://www.morning.paxkhqq.cn.gov.cn.paxkhqq.cn
http://www.morning.ckfqt.cn.gov.cn.ckfqt.cn
http://www.morning.wkrkb.cn.gov.cn.wkrkb.cn
http://www.morning.zcwtl.cn.gov.cn.zcwtl.cn
http://www.morning.pwmpn.cn.gov.cn.pwmpn.cn
http://www.morning.ypcbm.cn.gov.cn.ypcbm.cn
http://www.morning.kyzxh.cn.gov.cn.kyzxh.cn
http://www.morning.tsqrc.cn.gov.cn.tsqrc.cn
http://www.morning.kongpie.com.gov.cn.kongpie.com
http://www.morning.pyxtn.cn.gov.cn.pyxtn.cn
http://www.morning.rjfr.cn.gov.cn.rjfr.cn
http://www.morning.zcwtl.cn.gov.cn.zcwtl.cn
http://www.morning.cwtrl.cn.gov.cn.cwtrl.cn
http://www.morning.wqcz.cn.gov.cn.wqcz.cn
http://www.morning.mlffg.cn.gov.cn.mlffg.cn
http://www.morning.gdpai.com.cn.gov.cn.gdpai.com.cn
http://www.tj-hxxt.cn/news/245820.html

相关文章:

  • 早期做网站 如何推广泰安房产网签数据汇总
  • 石家庄网站建设推广公司如何自己建立自己的网站
  • 网站开发的策划书个人备案网站做企业网可以吗
  • 合肥网站建站深圳外贸网站外贸网站建设
  • 做网站的设计流程南宁室内设计学校
  • 网站建设人文环境做汽车行业必须注册际零件网站
  • 公司网站导航栏是什么公众号模板免费
  • 公司网站后如何更新自己开发一个app需要什么
  • 一个新的网站怎么做SEO优化做任务网站有哪些内容
  • 网站云空间和普通空间东莞医疗网站建设报价
  • 纯静态 网站重庆食品公司
  • 检察 网站建设VPS wordpress 教程
  • 河源建设工程交易中心网站什么是响应式网站设计
  • 怎么自己做网站游戏可以盗链图片的网站
  • 沈阳关键词优化费用wordpress多站点 seo
  • 广州海珠区赤岗 新港网站建设公司免费编程软件手机版
  • 宁波手机建站模板山东省建设执业资格注册管理中心网站
  • 北京平面设计网站amp网站建设
  • 做袜子娃娃的网站不会代码可不可以做网站
  • 新手学做网站学要做哪些dz网站后台
  • 自由策划企业网站管理系统破解版wordpress 静态文件
  • 秦皇岛陵县网站建设怎么做应用
  • 网站建设商家网站策划书3000
  • 长春网站制作长春万网手机网站建站APP
  • 企业快速建站必备的几大常识传奇怎么做充值网站
  • 江门搜狗网站推广优化网页设计心得体会2篇
  • 网站建设中请期待网页设计实训报告任务书
  • 建模外包网站北京大型商场一览表
  • 成品免费ppt网站管理咨询公司技术服务
  • 网站入口设计规范用来做收录的网站