SOURCE CODE - If you send a little tutorial about how you cracked this it could help a lot of people.
Private Sub CheckPassword_Click()
Dim X&, Y&, Z&, J&, I&, P&
Dim Stri$, Char$, iHwnd$
Static Rt As Byte
'Password for x = "#128-*AGF987150"
'Real Password for text box = "#128-*AAF987150" NOTE THAT IT IS DIFFERENT AFTER THE XOR YOU WILL GET A DIFFERENCE OF 6
'Encrypted password = ¹¨ª¯»¿ÕÔÔ¨¨¸¿¸¼
Y = Len(Text1.Text)
'Encrypt the password This is what you followed in memory. You failed at first as this is the "-6" password
For X = 1 To Len(Text1.Text)
Char$ = Mid$(Text1.Text, X, 1)
P& = Asc(Char$) Xor 155 - X
Stri = Stri + Chr$(P&

Next X
'The password must be fifteen characters long Y = 15
'Pad out the password
If Y > 15 Then iHwnd = "¹¨ª¯»¿ÕÔÔ¨¨¸¿¸¼" + Space$(Y - 15)
If Y <= 15 Then iHwnd = "¹¨ª¯»¿ÕÔÔ¨¨¸¿¸¼"
'IF it is OK make Z = 6 This is used as a parameter for SendMessage
For X = 1 To Y
I = Asc(Mid$(iHwnd, X, 1)) Xor Asc(Mid$(Stri, X, 1))
Z = Z + I
Next X
'You could add a comparison of the two strings to cause another false trail here.
'NOW REPEAT THE SAME AND MAKE P=1
P = Z - 5 'Make P = 1
R = Z 'Globally remember the value of Z ie 6.
'If you directly call the API showwindow on the second handle the window will display and then disappear if R <> 6
X = SendMessage(Form2.hwnd, Z, P, Form2.hwnd)
'If Z = 6 and P = 1 we have sent a Activate window message.
'This message is generally sent after OpenWindow. In this case it is the Activate procedure in VB which
'displays the window using SetWindowPos rather than ShowWindow or the VB command Show.
'The password was not OK
'X = 0 is the API fails
If X = 0 Then X = MsgBox("Try again!", vbExclamation + vbOKOnly, "BETTER LUCK NEXT TIME!"

'show the message
Rt = Rt + 1
'Too many tries so Reebot the system
If Rt > 3 Then X = ExitWindowsEx(4 Or 0 Or 2 Or 1, 0) 'FAILED THREE TIMES SO SHUT DOWN WINDOWS
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
End Sub
Private Sub Quit_Click()
End
End Sub
Private Sub Form_Load()
Text1.SelStart = 0
Text1.SelLength = 9
Label4.Caption = "Handle of This Window: " + Hex$(Me.hwnd) + "h" + Chr(10) + "Handle of Second Window: " + Hex$(Form2.hwnd)
End Sub
'***************************** SECOND FORM *************************
Private Sub Form_Activate()
'This was called via the SendMessage API and not by Visaul Basic
Dim str$, X&
'Show the window using SetWindowPos rather than ShowWindow or the VB Show command.
X = SetWindowPos(Me.hwnd, HWND_TOP, 150, 150, 0, 0, SWP_NOSIZE Or SWP_SHOWWINDOW)
'Well done friend encrypted
For X = 1 To 20
Char$ = Mid$("Ìþ÷÷»ÿôõþ»öâ»ýéòþõÿº", X, 1)
P& = Asc(Char$) Xor 155
str = str + Chr$(P&

Next X
Label1 = str
Form1.Command1.Enabled = False
'This window was not called by our API so close it
If R <> 6 Then Me.Hide
End Sub
'********************* THE BAS FILE *****************
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Public Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Public Const HWND_TOP = 0
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOSIZE = &H1
Public Const SWP_SHOWWINDOW = &H40
Global R&