您的位置:首页 > 网络编程 > PHP

使用函式:md5()给你的密码加把锁

日期:2005-11-16 00:00:00 点击: 来自: 作者:
其实这是一个简单的小技巧

使用DW2004建立用户登陆功能后(Application/User Authentication/Log in user)

得到以下代码:
... ... ... ...
... ... ... ...

if (isset($_POST['username'])) {
$loginUsername=$_POST['username'];
$password=md5($_POST['password']);注意原句为:$password=$_POST['password'];
$MM_fldUserAuthorization = "adclass";
$MM_redirectLoginSuccess = "loginok.php";
$MM_redirectLoginFailed = "sorry.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_conn, $conn);

... ... ... ...
... ... ... ...


只要套上 md5() 就加密了,不信? 赶快打开数据库看看吧...
More..素材图片 Picture Navigation
  •  彩云之南
  • 《超宽屏壁纸》带你体验大自然的魅力
  • 18张最美丽的北京风光 1600X1200 像素
  • 2ADVANCED 2006 壁纸系列
PHP热门 Class Hot
PHP推荐 Class Commend
版权所有:中国网站资源 2005- 未经授权禁止复制或建立镜像 This Site Tech:XHTML+DIV+CSS+Javascript
CopyRight ® 2005- www.Chinaddv.com online services. all rights reserved. ICP06016627
Optimized to 1024x768 to Firefox,Netscape,Opera,MS-IE6+.