LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make a password necessary program for different users?

Understand this whole reading passwords from a human readable ASCII file is a huge no-no.  Sure under some circumstances it's fine I just wanted to make it clear that a production program, or a program that actually needs some level of real security should never do this.  If this is right for you don't let me stop you.

 

In the real world (medium to large scale programs, production programs, programs where security is a must) you shouldn't really be handling the passwords at all.  In the past I've used Windows security, and group policies.  So the user logs in with their user name and password, then my application just reads what the current user's privileges are and opens that part of the program up.  Here my program doesn't deal with users, or passwords, or privileges it just asks Windows what it should do.

 

If Windows security isn't an option for some reason, NI also sells the DSC toolkit which has alot of neat stuff, one of which is user control. 

0 Kudos
Message 11 of 15
(836 Views)

Hello apok, I have tried to make your .png file. How do you combine your 3 arrays in your Front panel to 1 array in your block diagram? I have made it like this. (see attachment). It is not working and I don't know why. Have you any idea.

 

Thanks anyway. 

0 Kudos
Message 12 of 15
(811 Views)

I don't know why the for-loop is used, so I left it out:

password.PNG

 

But as Hooovahh already said, you better make the username/password crypted.

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 13 of 15
(793 Views)

@marijnvrooij wrote:

Hello apok, I have tried to make your .png file. How do you combine your 3 arrays in your Front panel to 1 array in your block diagram? I have made it like this. (see attachment). It is not working and I don't know why. Have you any idea.

 

Thanks anyway. 


the 3 arrays were never combined on the front panel, it was made as a constant on the block diagram and seperated by the index array function (no need of a for loop? RubeG brain fart!). The 2D string array constant example was to be read from a spreadsheet file....

 

your example is indexing 3 arrays when you bundled only 2?....(please, no need of for loop. 2 yr. old example i had in my folder, must update)

 

again, this is used as a non encryptic example... suggest using outaw's .ini lookup as it is easier to implement (NI example under configuration file).  Smiley Wink

0 Kudos
Message 14 of 15
(781 Views)

the 3 arrays were never combined on the front panel, it was made as a constant on the block diagram and seperated by the index array function (no need of a for loop? RubeG brain fart!). The 2D string array constant example was to be read from a spreadsheet file....


 

Oh now I see, I just checked the one from marijn: http://forums.ni.com/ni/attachments/ni/170/785580/1/Read%20from%20array.PNG

That's why I was confused, haha Smiley Very Happy

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 15 of 15
(771 Views)