LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write cluster to XML then save it as Non-readable

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.

0 Kudos
Message 1 of 3
(2,487 Views)

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,

V-F
0 Kudos
Message 2 of 3
(2,477 Views)

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

 

 


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 3 of 3
(2,472 Views)