I have an iOS application that uses a database without encryption .
Now I would like to apply encryption in this database.
Is it possible to simply set the encryption key using:
Realm.setEncryptionKey(key, forPath: Realm.defaultPath)
and then the area will encrypt the existing database?
Or do I need to create a new area database file with encryption, and then move the data in the existing database to a new encrypted database?
source share