09-10-2014 06:34 AM - edited 09-10-2014 06:34 AM
Dear All
I am looking to the function to set and unset the password for my log file!
I can not find any function in LabVIEW file I/O !
Thanks and Regards
Luong.Tran
Solved! Go to Solution.
09-10-2014 07:43 AM
There's no meaning to a password on a text file. You could encrypt it with a password, but there's nothing native in LabVIEW that'll do it for you. I found this on the Blowfish algorithm that might help you.
09-10-2014 08:27 AM
If you write the file as binary, understanding the data written is sorta difficult. In my mind this is the first layer of protection because a normal user can't just open the file in a text editor. Only your application can know how to read and display the data. Other ideas involve using ActiveX or .NET calls to other applications like Word, Excel, or Acrobat to set a password on the file. This is more challenging but more standard. I've also seen developers make a zip archive and set a password on the archive. OpenG zip utility supports this, and so does the command line 7-zip.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-10-2014 08:45 AM
I would recommend becoming familiar with using .NET in LabVIEW as there are many .NET functions to do what you want. A method to sign a file (to detect tampering) is here This technique allows people to view a file but if they modify it, you can easily detect it on load. Other .NET functions exist to encrypt files completly or if you don't need full encryption just come up with some home grown obfuscation code (e.g. store backwards as binary data). It really depends on what level of security you need.
09-10-2014 09:45 PM
Dear All
Thank you so much for your help!
Best Regards
Luong.Tran