home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 3195
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 3195
- ScaleWidth = 4680
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Binary
- Caption = "Binary"
- Height = 375
- Left = 1800
- TabIndex = 3
- Top = 720
- Width = 975
- End
- Begin VB.CommandButton Ascii
- Caption = "ASCII"
- Height = 375
- Left = 360
- TabIndex = 2
- Top = 720
- Width = 1095
- End
- Begin VB.TextBox password
- Height = 285
- IMEMode = 3 'DISABLE
- Left = 1440
- TabIndex = 1
- Top = 120
- Width = 1815
- End
- Begin VB.Label Label1
- Caption = "Password:"
- Height = 255
- Left = 240
- TabIndex = 0
- Top = 120
- Width = 975
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Ascii_Click()
- Dim md5 As YuriEncrypt.md5
- Set md5 = New YuriEncrypt.md5
- Dim EncryptedPassword As String
- EncryptedPassword = md5.Encrypt(Me.password)
- MsgBox ("The encrypted form of the password you entered is " & vbNewLine & EncryptedPassword)
- End Sub
- Private Sub Binary_Click()
- Dim md5 As YuriEncrypt.md5
- Set md5 = New YuriEncrypt.md5
- Dim Pwd As String
- Pwd = Me.password.Text
- Dim BinPwd() As Byte
- ReDim BinPwd(1 To Len(Pwd))
- For i = 1 To Len(Pwd)
- BinPwd(i) = Asc(Mid(Pwd, i, 1))
- Next i
- Dim EncryptedPassword As String
- EncryptedPassword = md5.EncryptBinary(BinPwd)
- MsgBox ("The encrypted form of the password you entered is " & vbNewLine & EncryptedPassword)
- End Sub
-