Re: Storing Password
From: MikeD (nobody_at_nowhere.edu)
Date: 05/12/04
- Next message: MikeD: "Re: help !!"
- Previous message: MikeD: "Re: Storing Password"
- In reply to: Eric: "Storing Password"
- Next in thread: Josh Miller: "Re: Storing Password"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: MikeD: "Re: help !!"
- Previous message: MikeD: "Re: Storing Password"
- In reply to: Eric: "Storing Password"
- Next in thread: Josh Miller: "Re: Storing Password"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|