I used this configuration code for Realm Encryption
let configuration = Realm.Configuration(encryptionKey: "key" as Data) let realm = try! Realm(configuration: configuration)
I used this configuration code for Realm Sync with the server
let configuration = Realm.Configuration(syncConfiguration: SyncConfiguration(user: user, realmURL: syncServerURL)) let realm = try! Realm(configuration: configuration)
How can we encrypt and synchronize with the server using Realm?
source share