Are you blogging on PH? Get your free blog.

View DES Implementation\get_password.frm

Implementation of Data Encryption Standard (DES) V1

Submitted By: meetsugan
Rating: starstarstarstar (Rate It)


VERSION 5.00
Begin VB.Form get_password_frm
   BorderStyle     =   0  'None
   ClientHeight    =   1845
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   3510
   LinkTopic       =   "Form1"
   ScaleHeight     =   1845
   ScaleWidth      =   3510
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2
      Caption         =   "Ok"
      Height          =   255
      Left            =   2160
      TabIndex        =   4
      Top             =   2880
      Width           =   975
   End
   Begin VB.TextBox Text2
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   360
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   2280
      Width           =   2775
   End
   Begin VB.Frame Frame1
      Caption         =   "Enter a 8-Char Password..."
      Height          =   1815
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   3495
      Begin VB.Timer Timer1
         Enabled         =   0   'False
         Interval        =   100
         Left            =   120
         Top             =   2760
      End
      Begin VB.CommandButton Command1
         Caption         =   "Ok"
         Height          =   255
         Left            =   2160
         TabIndex        =   2
         Top             =   1320
         Width           =   975
      End
      Begin VB.TextBox Text1
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   360
         PasswordChar    =   "*"
         TabIndex        =   1
         Top             =   720
         Width           =   2775
      End
      Begin VB.Label Label1
         Caption         =   "Confirm Password:"
         Height          =   255
         Left            =   240
         TabIndex        =   5
         Top             =   1920
         Width           =   1455
      End
   End
End
Attribute VB_Name = "get_password_frm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim counter As Integer

Private Sub Command1_Click()
If (Len(Text1.Text) = 8) Then
Timer1.Enabled = True
Else
MsgBox "Password Should be of 8 Characters length"
Text1.Text = vbNullString
End If

End Sub


Private Sub Command2_Click()
If (Text1.Text = Text2.Text And Len(Text1.Text) = 8) Then
main_frm.password = Text1.Text
main_frm.Show
Unload Me
Else
MsgBox "Please verify the password again! ! !"
Text2.Text = vbNullString
End If
End Sub

Private Sub Timer1_Timer()
If Me.Height < 3270 Then
Frame1.Height = Frame1.Height + 100
Me.Height = Me.Height + 100
Else
Timer1.Enabled = False

'Unload Me
End If

End Sub

corner
© 1996-2008. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin.
bootstrapLabs Logo A bootstrapLabs project.