IBM Worklight v5.0.5 > Develop IBM Worklight applications > Data synchronization with JSONStore

Encrypt collections

You can specify that all collections created for an app are encrypted in the JSON data store. It is not possible to have some collections encrypted and others not encrypted in the same app.

When a single collection is encrypted, the underlying storage mechanism encrypts all further collections. After a collection is created in either clear text or encrypted, you cannot convert it from one format to the other. A collection that is created in clear text would have to be destroyed and re-created with the usePassword option and reloaded with data and vice versa.

To specify that the collections are to be encrypted implement the usePassword method when you create a collection.


Parent Data synchronization with JSONStore