08-20-2015 01:06 PM
How can I protect some txt/xml files when I build an executable?? When I inlcude text files labview put them on the Data folder. But everyone can access that folder and opens my text files. I would like my text files to be hidden or something similar so noboady can open them. I consider this text files as IP.
08-20-2015 03:12 PM
Well, there is encryption, but that doesn't prevent the file from being modified (or deleted).
Is the information "static", i.e. the file is Read-Only, and will never be changed (unless you change the Main Routine)? If so, you could take the information within the file and write a "Constant VI" (Write-Only) that you build as part of your executable. Note that you might still have a "visibility" problem, since if your customer were to view your executable with a Text Editor, and you had such a Constant VI whose content was text, it would probably show up in the Editor.
What is in the file? If it is an XML file that lists configuration variables (like a .INI file), you would write a small utility that reads the file, extracts the XML variables to their "native" state (which I'm guessing is largely numeric), and writes a Binary file, which is the file you provide to your customer. In your code, you have a Develop/Deploy choice (perhaps using Diagram Disable) -- in Develop, you read the XML file (on your own PC), but you hand the customer the executable in Deploy mode, where you replace the XML Reads with a Read of the Binary file, reading into the same set of variables. Your utility would create the Binary from the XML, of course ...
Those are just some ideas.
Bob Schor
08-27-2015 01:29 PM
I try the constant VI option. I think it is enough. I open it with a Hex/Text editor and it did not show plain text.
thanks,