Jump to content

Login vi


Recommended Posts

Hello all,

I'm new with LabVIEW and I need to create a subvi that can validate the users of the vi.

I found an example in LabVIEW, but it uses a table, and the logins and passwords are there for everyone to see. I need something hidden, even encrypted if possible.

Any sugestions ?


Link to post

there are many ways to do this.

1. You can use basic math to do a simple encryption on the password. One of the most common ways involves taking the password input from a string control, converting the string to ASCII data, then run it into boolean math. (XOR, shifting, or inversion) The good part of this system is that it is easy to code, it executes quickly, and the password string is not explicity saved in the VI.

2. I have also used a hash function as a password. I input a password to a MD5 generator, then store the MD5 hash in my VI. If a user wants access to a feature, they need to input a password, and my VI will compare the MD5 result for that password to the one stored in my VI, if they match access is granted. The downside is that long calculations can get CPU intensive. You can find a MD5 VI here:


3. You can buy authentication/security packages for Labview. There are many companies using Labview that need passwords and authentication for FDA validation. Look at the following links.



Hope this helps,


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.