10-06-2005 07:31 AM
10-06-2005 07:54 AM

10-06-2005 08:06 AM
10-06-2005 08:06 AM
mana111;
Users will always be able to open the file, some way or the other. What you don't want is the ability to understand it - you want to preserve the confidentiality. First, you need to determine what needs to be protected. Usually the username is known and therefore no protection is provided. The password always need protection. Also, you need to determine your recovery procedures. Users WILL forget their passwords. That has an impact on how to protect the password. If you want the ability to tell the user their password, then you may want to encrypt the password so the administrator can decrypt it. If instead you want to give them a new password, then you can hash the password. With that technique you won't be able to recover the lost password. If you encrypt the password, you need to have a key management scheme because you need to manage the key that encrypt the passwords - that is equivalent to a master key.
I've seen systems where the password does more than just authenticate the user. It is also used as a key to encrypt additional information. If that's your case, you need to encrypt the password. There are other considerations for your systems. The ideal way to understand the best solution is via a security assessment.
Check Crypto-G: www.visecurity.com. It is a very good library with algorithms for encryption, hashing (message digest) and other cryptographic functions.
Regards;
Enrique
10-07-2005
09:41 AM
- last edited on
10-19-2025
01:43 PM
by
Content Cleaner
If you want to change the default value at run time, you will need a config file. When you start the program, read the config file and load the value. When you exit the program, write the config file.
Config files can take many forms. The easiest is to use the LabVIEW Configuration File VIs (submenu of the File I/O palette). I prefer HDF5 based config files for their speed and flexibility, but the learning curve there is pretty high. Look at Can I Edit and Create Hierarchical Data Format (HDF5) files in LabVIEW? for more information, but be prepared for a lot of work.
10-07-2005 03:31 PM
10-08-2005 10:26 PM