realm-dart-samples
realm-dart-samples copied to clipboard
Encrypted realm example
Can someone forward me to some examples of using encrypted realm with more than 2 models in it. Thank you.
I hope i am on right place
Hi @maipal-oscoy!
You can take a look at our tests, which are testing the encryption. You can take any of this samples and just can pass encryptionKey
argument to the Configuration
constructor.
Here are the tests https://github.com/realm/realm-dart/blob/410c95a1e3983e1c7fde318073a2078f0677e41a/test/realm_test.dart#L960
There is no difference if you have one, two or more models.
Thank you. I am here because of this
I am using getx state management tools and i am thinking of using realm for local persistent , because it offers best encryption.