Realm Cloud & encryption


#1

I have an existing app that has been deployed with an unencrypted Realm database, syncing with Realm Cloud.

I now need to have the data encrypted on-device. Is it as easy as passing a encryptionKey (securely stored on device of course), or do I need to share the same encryption key on all the devices logged in to the same account, because of the Realm Cloud sync?


#2

@iotashan No you do not need to share the key, the Sync will come after the local Realm file is unlocked by your encryption key.


#3

Awesome, thanks for your help!