• 0

Password protect a VB program!


Question

Hi!

I'd like to know how I can password protect a prog made with VB and be able to change the password if needs be without recompilling the program.

If anyone could help me with that or direct me to a website with some info on how to do that it'd be greatly apreciated

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Try looking for a MD5 hash generator or some other password encoder for vb on planetsourcecode.com and make it save the encoded password in a hidden place somewhere or places like system.ini, registry etc. Then implement the decoder into your program, and that should work.

Link to comment
Share on other sites

  • 0

Ok heres teh code

make a login bt and link it to this.

Private Sub Command1_Click()

UserName = InputBox("Enter your first name.")

If UserName = "yeruser1" Then

MsgBox ("Welcome, user! ?")

Dialog.show

ElseIf UserName = "user2" Then

MsgBox ("Welcome, User! ?")

Whatever.show

Else

MsgBox ("Sorry, I don't recognize you.")

End 'quit the program

End If

End Sub

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.