> >I'd use Buddy to write an encrypted string to an ini file. > If the ini > >file is missing, or the encrypted string isn't what you expect it to > >be, bail. > > Which didn't answer the question! Have another read, I'm sure you'll > have ideas about the real question too.
Ok, I read the question again, and I'm not sure how I didn't answer it. I guess I didn't give all the steps, but I think I pointed him in the right direction. The Chinese have a saying: when you draw a picture of a doll, you don't have to draw the intestines. So, how's this. When you install the program, install an ini file with an string you've encrypted with Buddy. If the user fails the password test three times, write another encrypted string to the file indicating failure. Every time you start, you read that ini file, decrypt the string, and decide whether to continue. If the user has deleted the file, that means he/she has been mucking around where he shouldn't, so I'd interpret that as pretty much the same as a failure. For more security, you could have more than one encrypted strings, or write to more than one ini file. It's not foolproof, but nothing really is, because fools can be so ingenious. Cordially, Kerry Thompson [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
