01-11-2006 04:18 PM
01-11-2006 04:37 PM
First thing is to create a file that will contain three fields: login name, password, and access level. These can be TAB separated or comma separated. Each entry should be on a new line. Then look for a good encryption scheme or program (more on that later). The first thing your main vi should do is to read the file and form a table or 2D array with 3 columns and as many lines as there are in the file. Use the access level to allow or disallow changing the table. When table is changed, you need to write the contents back to the file. Now since you wouldn't want anyone to open up a plain text file and see everyone's password, you need to encrypt the password before writing it to the file. Also, when reading the file, the encrypted password needs to be decrypted so that you can check the user's input with the assigned password. The string control for the password should be displayed in the password mode (right click and select password display), so as to display stars instead of the characters that the user types. For expiration dates, you need to add another field for the expiration date. When password is changed, reset this field to the next expiration date.
Well this is a start, there is so much coding that you need to do. I'll send you something in private to get you started.
01-11-2006 04:59 PM
01-11-2006 05:25 PM
The DSC module has usernames and security stuff.
http://zone.ni.com/reference/en-XX/help/371361A-01/lvtemp/securitydomain/
01-11-2006 10:28 PM
Hey, Jhoskins,
Dont worry man, here i am posting you one vi, which is specially a login form vi, in which the number of users you can define with the number of previllages, In that the user level previllages like, Adminidtrative user, Read-Only user kind of levels are defined, so first of all go into the block diagram, see what are the user name and password and start by joining your vi, if username and password are right, and you also can give the constant path instead of the option i ve given, actually i ve hide it. and let me hope that it will help you for sure, if any problems with that reply me, i ll help you for sure.
Thanks,
Nishant
01-12-2006 08:04 AM
Thanks everyone for all the answers I will be real busy now. Nishant I need some all of the global vi's for yours, please post them. Thanks for your reply to unclebump I wish I could get the DSC module but it was hard enough to convince them to let me use LV for the project and not that other language where you have to read all the time, but a good answer none the less.
Thanks again if anyone has anymore please post.
01-12-2006 10:08 PM
Hiii, Jhoskins,
Sorry man, i dont concentrate on the global vis,here I am posting you those global vis, now you can run the vi for sure, or otherwise, you also can contact me if any problems.
Hey any of you can answer me that how i can bind all these vis to send, coz here i ve to send it seperately.here i ve to attach another vis in another message.
Thanks,
Nishant
01-12-2006 10:10 PM
Hii,
Here I am sending you remaining vis.
Thanks,
Nishant
01-13-2006 07:32 AM
Put them in a .zip file and send them.
Thanks.
01-13-2006 11:36 AM
I recommend another level of encoding-decoding, besides encryption. I would use a LabVIEW datalog file for the user database.
::Marty