comments needed 
July 22nd, 2005, 07:48 AM
| | | |
We are asked to write a library (component) that will manage a list of
users. The library will contain the following user information:
userid, first
name, last name, and password. The users information has to be
persistent.
Our library will allow a user of the library to create accounts. Then
a
query can be made to get the user's first name or last name. To verify
password, a userid and password is given. The password is stored in a
way that others will not be able to decipher what the password is by
visually inspecting the storage.
How should we go about implementing this library? What are your design
thoughts? | 
July 22nd, 2005, 07:48 AM
| | | | re: comments needed
Rajat Chadda wrote:[color=blue]
> We are asked to write a library (component) that will manage a list of
> users. The library will contain the following user information:
> userid, first
> name, last name, and password. The users information has to be
> persistent.
> Our library will allow a user of the library to create accounts. Then
> a
> query can be made to get the user's first name or last name. To verify
> password, a userid and password is given. The password is stored in a
> way that others will not be able to decipher what the password is by
> visually inspecting the storage.
>
> How should we go about implementing this library? What are your design
> thoughts?[/color]
class User;
class ListOfUsers; | 
July 22nd, 2005, 07:49 AM
| | | | re: comments needed
"Rajat Chadda" <rajat.chadda@wipro.com> wrote in message
news:8480cb53.0402231436.20bfb5ad@posting.google.c om...[color=blue]
> We are asked to write a library (component) that will manage a list of
> users. The library will contain the following user information:
> userid, first
> name, last name, and password. The users information has to be
> persistent.
> Our library will allow a user of the library to create accounts. Then
> a
> query can be made to get the user's first name or last name. To verify
> password, a userid and password is given. The password is stored in a
> way that others will not be able to decipher what the password is by
> visually inspecting the storage.
>
> How should we go about implementing this library? What are your design
> thoughts?[/color]
Well, how would you go on implementing this library? Here's the deal, give
some ideas of yourself and I (and most probably others) will give you my
thoughts about it.
Cheers
Chris | 
July 22nd, 2005, 07:55 AM
| | | | re: comments needed
Rajat Chadda wrote:[color=blue]
> We are asked to write a library (component) that will manage a list of
> users. The library will contain the following user information:[/color]
....[color=blue]
> query can be made to get the user's first name or last name. To verify[/color]
....[color=blue]
>
> How should we go about implementing this library? What are your design
> thoughts?[/color]
All this suggests that you are well served by the zillions of databases
on the universe. Why would you want to implement something that exists
so abundantly is beyond my understanding....
If you really this to be really small, then maybe... Still, your post
just points to serializing data into a file, read it back, create a map
of entries in which the userid is the key. How to securely store your
data you have to come up with yourself... |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,702 network members.
|