Adblock breaks this site

Password Protection tutorial

Discussion in 'Programming General' started by Waffles, Dec 1, 2007.

  1. Waffles

    Waffles Guest

    Referrals:
    4
    Password Protection tutorial

    Objects Needed:
    - Text Box
    - Label
    - Command Button
    - Timer
    Place All 4 Of The Above Object Onto Your Form

    Properties:
    Text1 - Text - (Empty)
    Text1 - PasswordChar - *
    Label1 - Caption - Enter The Password
    Command1 - Caption - Try Password
    Timer1 - Interval - 15000
    Timer1 - Enabled - True
    Form1 - Caption - Password

    Coding:
    Double Click On The Form & Input The Following

    Code:
    MsgBox("Time Expired") End
    Double Click On The Command Button & Input The Following

    Code:
    If Text1.Text = "yourpassword" Then Timer1.Enabled = False MsgBox("Access Granted") End Else MsgBox("Access Denied") End If
    The Above Coding Is Telling The Program That If The Password "yourpassword" (without quotes) Is Entered Into The Text Box, The Message "Access Granted" Will Appear. But If The Certain Password Is Not Correct, It Will Tell The User "Access Denied" And Also, A 15 Second Wait Is On The Form
     
  2. timk777

    timk777 Active Member

    Joined:
    Feb 19, 2007
    Posts:
    156
    Referrals:
    0
    Sythe Gold:
    0
    Password Protection tutorial

    Why Do You Type Like This? Also, this is a really bad way to do it and this has been posted SO many times before. SQL database is better by the way.
     
  3. Waffles

    Waffles Guest

    Referrals:
    4
    Password Protection tutorial

    Those are easily injectable, by using SQL injections. So please get your facts straigth before posting one someones thread.
     
  4. WoW Sucks

    WoW Sucks Global Moderator
    Banned

    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0
    Password Protection tutorial

    Im sure this is easier to crack than SQL is to injected into.
     
  5. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    Password Protection tutorial

    Well, you're way pretty much sucks because there's no way to prevent the program from being leeched. I'd rather have that slim chance of SQL injections and still be able to sell the program properly.
     
< MSN bot (Beta) | Help Me?!?!? >


 
 
Adblock breaks this site