View Single Post
Old 06-23-2004, 10:03 PM  
187
Confirmed User
 
Join Date: Jun 2004
Location: ICQ: 59-10-33
Posts: 493
Any VB newbies? Want to password protect your software with a URL .txt

This way you can change the access password whenever you want

I just threw this together for a program I'm making

Load up msinet.ocx

make: text1 (password), text2 (password feedback from the web), commandbutton1 (password verification), label1 (status), form2 (the next form)

----------------------------------

Private Sub Command1_Click()
Label1.Caption = "[ verifying pwd ]"
Dim pWd As String
pWd = Inet1.OpenURL("http://website.com/pwd.txt")
Do: DoEvents
Loop Until Inet1.StillExecuting = False
Text2.Text = pWd
If Text1.Text = "" + Text2.Text + "" = False Then GoTo unverified
verified:
Label1.Caption = "[ welcome... ]"
Form2.Show
GoTo verifiedx
unverified:
Label1.Caption = "[ INCORRECT ]"
End
verifiedx:
Unload Me
End Sub

---------------------------

^ simple code, but if your software leaks you can just change the access password in the URL and nobody can get in
__________________
wtf? free traffic? ww.netr.nu is slick business you sheep

Last edited by 187; 06-23-2004 at 10:05 PM..
187 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote