ThinkGeo.com    |     Documentation    |     Premium Support

Shapefile Encryption

Hello,


As at Version 2, Shapefile encryption is natively supported in Mapsuite Desktop. I understand it is not so supported in Version 3. I am developing an application and will want to protect my data from being used outside the application.  I will be glad to have shapefile encryption available in Mapsuite Desktop 3 asap. Is this important functionalty in the pipeline?


Tayo



Hi Tayo, 
  
 Welcome back to Map Suite’s world. 
  
 Sorry for inconvenience that we remove the encryption function in Version 3. But I think you can implement by yourself. 
 You can use StreamLoading event, please look at HowDoI sample LoadAMapFromStreams at Data Providers catalog, and it shows how to use this event. 
 And you just need change a little bit and write your own encrypt and decrypt logic code. 
 For example, you edit your shapefile and save and make it encrypt. At this time, the data format of your shape file is not following the standard. When you load shape file, the event will be raised, at the event method, you can edit the stream back and make it decrypt, at this time the shapefile in memory stream will follow the standard temporary. 
  
 Please let me know if I am not very clear. 
  
 Thanks 
 James 


Hi James,  
  
 Can you help with sample code? I am not a power user of mapsuite yet. 
  
 Thanks 
  


Hi Tayo,


After I did a lot of research, I found that we can not exactly implement what you want, sorry for that.
 
I thought you can modify the stream in the event method, but it can not seek. So you need load all file to memory, if follow this way, you can not encrypt large shape file.
 
Here is the sample code to demonstrate shapefile encryption in MapSuite3.0, but I think it over, maybe it's not fit for your requirement:
gis.thinkgeo.com/Support/Dis...fault.aspx
 
If we make any improvements about encryption in the future, I will let you know.

 
 
Thanks
James