找回密码
 加入
搜索
查看: 2549|回复: 3

给我一个MD5的密码验证窗口

[复制链接]
发表于 2008-6-8 06:10:43 | 显示全部楼层 |阅读模式
把源代码发给我 ,让我   学习学习,  谢谢,最好是比较完整的

[ 本帖最后由 网络凯子 于 2008-6-10 00:42 编辑 ]
发表于 2008-6-8 07:38:30 | 显示全部楼层
给我一个Beautiful girl

把她发给我,让我 学习学习,谢谢,最好是原装的。
发表于 2008-6-8 21:38:38 | 显示全部楼层
汗一个
发表于 2008-6-8 22:23:39 | 显示全部楼层
老衲倒是有一个
While 1
                $nMsg = GUIGetMsg()
                Switch $nMsg
                        Case $Button2
                                Exit
                        Case $Button1
                                $user = GUICtrlRead($in1)
                                $pass = GUICtrlRead($in2)
                                If $user = "" Then
                                        MsgBox(64, "提示", "请输入用户名,用户名不能为空。", 5)
                                Else
                                        If $pass = "" Then
                                                MsgBox(64, "提示", "请输入密码,", 5)
                                        Else
                                                $conn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & $datadir & ";Jet Oledb:Database Password=123")
                                                $RS.ActiveConnection = $conn
                                                MsgBox(0, "0", "Select * From users where admin=" & "'" & MD5_String($user) & "'" & 'and password=' & "'" & MD5_String($pass) & "'")
                                                $RS.Open("Select * From users where admin=" & "'" & MD5_String($user) & "'" & 'and password=' & "'" & MD5_String($pass) & "'")
                                                If $RS.eof Then
                                                        MsgBox(16, "警告", "用户名或密码错误,请重新输入。")
                                                        $conn.close
                                                Else
                                                        GUIDelete($Form1)
                                                        ExitLoop
                                                EndIf
                                        EndIf
                                EndIf
                EndSwitch
        WEnd

其他部分自己加 不然太长 懒得传附件
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-17 17:30 , Processed in 0.070900 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表