05-06-2014 03:22 PM
I need to be able to create password protected user accounts for my LabWindows application. I say there was a password control. Are there any other built-in functions in LabWindows to create and maintain user accounts for an application? Any add-ons?
05-07-2014 02:28 AM
CVI does not integrate native functions to tailor an application based on a user account, you must design and code this section on your own.
As an help in this matter, CVI offers a password control to permit a user to enter a password with the usual, asterisk-masked input field: where and how to store passwords and what to do with them is on your responsibility.
As an additional help, I have created a small sample project to permit hashing a text (e.g. a password): since hash does not permit to decode back the original text, you can safely store the hashed text without special precautions (OK, we're not designing a banking application, aren't we? ); to check a password entered by the user you only need to hash the password and compare the hash with the original, saved one: if they're the same, then you can permit the user to log in. Despite it's quite old (developed in CVI7), that sample still works correctly in newer IDEs: I have tested it in 2012SP1 without problems.
05-07-2014 07:24 AM
Thanks for the information. I'll give it a try!