Password Protection Tutorial

Discussion in 'Programming' started by movvadinesh, Feb 1, 2008.

  1. #1
    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

    ENJOY
     
    movvadinesh, Feb 1, 2008 IP
  2. jorgy

    jorgy Peon

    Messages:
    611
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's probably easier just to use PHP and MYSQL and the hash function that goes along with that. Just FYI
     
    jorgy, Feb 1, 2008 IP
  3. Arkserver

    Arkserver Banned

    Messages:
    2,533
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    looks like .net or vb..
    Oh and hardcoding passwords is a no no : -)
     
    Arkserver, Feb 1, 2008 IP