加入收藏 | 设为首页 | RSS
您当前的位置:首页 > 建站教程 > 网页技巧

一段对密码进行加密的脚本

时间:2012-04-30 13:10:38  来源:  作者:虾谷

  <script> 
//Encrypted Password script- By Rob Heslop 
//Script featured on Dynamic Drive 
//Visit http://www.dynamicdrive.com 

function submitentry(){ 
password = document.password1.password2.value.toLowerCase() 
username = document.password1.username2.value.toLowerCase() 
passcode = 1 
usercode = 1 
for(i = 0; i < password.length; i++) { 
passcode *= password.charCodeAt(i); 

for(x = 0; x < username.length; x++) { 
usercode *= username.charCodeAt(x); 

//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD 
if(usercode==134603040&&passcode==126906300) 
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD 

window.location=password+".htm"} 


来顶一下
返回首页
返回首页
推荐资讯
10步征服web2.0链轮第四步,决定链轮模式
10步征服web2.0链轮第
10步征服web2.0链轮第三步,消除“电子足迹”
10步征服web2.0链轮第
10步征服web2.0链轮第一步,理解链轮的概念
10步征服web2.0链轮第
小贺店铺
小贺店铺
相关文章
    无相关信息
栏目更新
栏目热门