Password Protection tutorial

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

Password Protection tutorial
  1. Unread #1 - Dec 1, 2007 at 11:22 AM
  2. Waffles
    Referrals:
    4

    Waffles Guest

    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
     
  3. Unread #2 - Dec 1, 2007 at 11:26 AM
  4. timk777
    Joined:
    Feb 19, 2007
    Posts:
    156
    Referrals:
    0
    Sythe Gold:
    0

    timk777 Active Member

    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.
     
  5. Unread #3 - Dec 1, 2007 at 11:33 AM
  6. Waffles
    Referrals:
    4

    Waffles Guest

    Password Protection tutorial

    Those are easily injectable, by using SQL injections. So please get your facts straigth before posting one someones thread.
     
  7. Unread #4 - Dec 1, 2007 at 12:39 PM
  8. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    Password Protection tutorial

    Im sure this is easier to crack than SQL is to injected into.
     
  9. Unread #5 - Dec 1, 2007 at 12:43 PM
  10. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    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?!?!? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site