Re: Storing Password

From: MikeD (nobody_at_nowhere.edu)
Date: 05/12/04


Date: Wed, 12 May 2004 14:53:07 -0400


"Eric" <anonymous@discussions.microsoft.com> wrote in message
news:A9FA2CB8-D1A9-45CD-97A2-DB4AB8BCADA0@microsoft.com...
> I am writing a program that need users to input a password. Users will
allow to create their password the first time they use the program. Then the
password will be encrypted and store into a text file. But my problem is
what if some guys deleted the text file that stored the password, then the
program will assume it is the first time being used and asked for new
password again. What is a good way to avoid this? Or another way of storing
password.

Personally, I really wouldn't be too concerned about it So what if they
need to type a new password? Perhaps a very minor annoyance (and it's the
user's own fault, afterall), but certainly no harm is done. In short,
there's not a lot you can do. Regardless of where you save the password (a
file, the Registry, etc.) there's always a chance a user could delete it.

Depending on other things, you *might* be able to prevent deleting the
password. For example, if you're using SQL Server (or another database) you
could store the password in the database itself, i.e. in a Users table. Of
course, for an Access database, there's still the chance of the .mdb file
getting deleted (which would be considerably worse than just losing the
password). If on a network, you could save the file to a network folder for
which the user doesn't have access. But then, you had to write complicated
code so that your program can still access it.

Mike



Relevant Pages

  • Re: Faber sees bankruptcy for the U.S.
    ... you are missing a chance to be insanely wealthy with all this ... Isn't the first time that someone has chickened out ... Sell all and put your money in the bank only to see ...
    (misc.invest.stocks)
  • UCL 2005-2006 Last 16 Day One
    ... Milan defence, Makaay shot first time, forcing Dida into making a fantastic ... Shevchenko spurned another chance and with Bayern seemingly reeling Milan ... Henry created two chances, both wasted by Reyes and Ljungberg. ...
    (rec.sport.soccer)
  • Re: How to Distribute a New Version
    ... about preserving the test data that your users have already entered. ... The agency stuck me> with doing this project even though I am a legal assistant, not a database> developer! ... > Looks like I am stuck spending hours on the phone doing it the hard way> having users import tables, do append queries to add the data to the new> tables and then deleting the old tables. ... Front end has a "first time run" routine that>> establishes the links to the back end file automatically when first run. ...
    (microsoft.public.access.gettingstarted)
  • Re: SetOption "Default Database Directory"
    ... As I said it works except for the first time the database opens and is set ... even with the rowsource problem solved. ... Database and reopen it and the form, ...
    (microsoft.public.access.formscoding)
  • Re: P.I.T. Run cancelled
    ... This weekend is usually the first meet of the year for the RMH TOMKAT group. ... A chance to rehash what we're doing to our rides during the short time we can't ride here. ... First time we've had bad weather for this one. ...
    (rec.motorcycles.harley)