How to implement password/access rights check

A

Alex Prokhorov

Hello all!
In my project I need to grant different users different levels of
access to the features of the program. It is clear for me how to do it
in case of simple allowed/denied access to the program. I just create
text file with usernames and md5 hash of their passwords. But how and
where to store access options? I suppose, that access options must be
encrypted too (or maybe i'm not right?). Additionally i need an option
for the admin to arbitrarily change access options for users without
knowing their passwords. Anyone could please direct me. Thanks.
Alex221
 
V

Victor Bazarov

Alex Prokhorov said:
In my project I need to grant different users different levels of
access to the features of the program. It is clear for me how to do it
in case of simple allowed/denied access to the program. I just create
text file with usernames and md5 hash of their passwords. But how and
where to store access options? I suppose, that access options must be
encrypted too (or maybe i'm not right?). Additionally i need an option
for the admin to arbitrarily change access options for users without
knowing their passwords. Anyone could please direct me. Thanks.
Alex221

Have you tried comp.programming? Your question seems to have nothing
to do with the C++ _language_. I bet there are also newsgroups that
deal with encryption and security, try them too.

Victor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top