<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form id="formid">
<input type="password" id="param">
<select name="usname" id="type">
<option value="1">git</option>
<option value="2">github</option>
<option value="3">阿里云</option>
<option value="4">百度云</option>
<option value="5">阿里云镜像仓库</option>
</select>
<button type="button" id="calu" onclick="caluClick();">计算</button>
</form>
<script>
function caluClick(){
var param = document.getElementById("param").value;
var type = document.getElementById("type").value;
calcFunc(param,type);
}
function calcFunc(param,type){
if(!param){
param = 0;
}else{
console.log(getPassword(charAtZreo(param),charAtZreo(type)));
}
}
function charAtZreo(param){
param = (param+107)*1997
return param;
}
function getPassword(param,type){
var result = Math.abs(param&type);
if(result<100000){
result = (result+137)*1997;
}
return (result+"").substring(0,6);
}
</script>
</body>
</html>
密码生成工具使用指南:
- 根据某个特定的key生成6位数组,组合心中可以特定的字符串即可。
- 注意事项:需记住一个特定的key和一个特定的字符串
网友评论