How to encrypt vector tiles JSON response

444 views Asked by At

I am using TileStache to serve vector tiles from PostgreSQL and using Tangram to display these tiles by passing URL ('http://localhost:8080/composite/{z}/{x}/{y}.json') in the data source. The response i get is in JSON format, which is what i wanted.

How to encrypt the JSON response? so that it is not human readable at the client end and readable at server end.

1

There are 1 answers

2
Gagan On

You can use protocol buffers for encoding the data. Here are two implementations geobuf and vt-pbf. But stealing of data can not be stopped as it need to be decoded at client side.