timbroder timbroder - 7 months ago 42
iOS Question

Proper way to verify Realm is encrypting on iOS?

I've followed the Encryption documentation and Sample Code.

I believe I have this setup correctly. (The Realm Browser crashes when I try to open my .realm)

What is the proper way to verify encryption?


You can verify that a Realm file is encrypted by opening it via the Realm Browser's "Open Realm File" or "Open..." options. The Browser shouldn't crash when opening the file, but rather it should prompt with an alert asking if the Realm is encrypted, at which point you can enter the encryption key. You can verify that the file is encrypted with the appropriate key by confirming that specifying the right key successfully opens the Realm, while specifying any other value fails to open the Realm.