Reputation: 878
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?
Upvotes: 0
Views: 737
Reputation: 14409
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.
Upvotes: 2