I would like my program to use a password. when the program first starts up a window will popup asking for a password before the main program window shows. if the wrong password is input the program simply terminates at that point. whats the most efficient way to do this? my program uses a window and not a dialog.
tremors,
There is no silver bullet. You may choose any scheme you like, unless you incorporate security in the program itself — it will be defeated.
There is no silver bullet. You may choose any scheme you like, unless you incorporate security in the program itself — it will be defeated.
Ya I'm aware of this way to easily bypass the password security. I did figure out how I would implement what I needed though. Thanks.
Create a dialog before your main program starts, ask for a user/pass combo and exit if wrong. Can be circumvented with a single jump to jump over the whole dialog creation but for the regular honest user who doesn't know anything about internal workings of a program that might be enough.