10-24-2012 05:43 AM
I want to save large cluster of config data to file. XML seems fastest and easiest way of doing.
I want to save this XML to disk but I don't want the user to be able to read it. Of course I want to be able to load the saved XML file again later.
What's the best way to save it as non-readable? Do XML format files have to have .xml extension for using LV XML VI's?
Thanks guys.
10-24-2012 06:44 AM
Hi,
the easyest way i see :
- use OpenG (varien configuration file) to write your cluster in a .ini file.
- read the created file (string) and convert this string to array of U8.
- make an operation on this array (example : add 50 to each value)
- convert the array of U8 to string
- write it in a the previous file.
Reverse theses points to read "crypted" file...
Best regards,
10-24-2012 07:05 AM
There are some ideas for protecting a configuration file (INI) on the LAVA forums...
http://lavag.org/topic/10146-protect-ini-file/
You could use some of the techniques suggested on your XML file or use INI