timbroder timbroder - 1 year ago 97
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download