|
发表于 2014-9-30 09:53:55
|
显示全部楼层
首先密码加密,然后服务器获取对比数据库,很明显每次都不一样的话,数据库存储的肯定是原密码,php服务器端肯定是要解码对比的。然后我们再来对比加密方式,一般js.
- function gook() {
- var S;
- S = document.getElementById("usernameshow");
- if (S.value == "")
- {
- alert("用户名不可为空");
- S.focus();
- return ;
- }
- S = document.getElementById("pwshow");
- if (S.value == "")
- {
- alert("密码不可为空");
- S.focus();
- return ;
- }
- S = document.getElementById("usernameshow");
- document.f1.username.value = S.value;
- S = document.getElementById("showsaveUser");
- document.f1.saveUser.value = S.checked;
- S = document.getElementById("showSecEx");
- document.f1.SecEx.value = S.checked;
- S = document.getElementById("pwshow");
- document.f1.pwhidden.value = encode(S.value, parseInt(document.f1.picnum.value));
- document.f1.submit();
- }
复制代码
看了一下,主要对2个输入值运算进行加密了,用JS解码一下就可以了 |
评分
-
参与人数 1 | 好评 +1 |
达人币 +50 |
收起
理由
|
刺客
| + 1 |
+ 50 |
热心帮助他人,奉上小小红包 |
查看全部评分
|