realm-dart-samples icon indicating copy to clipboard operation
realm-dart-samples copied to clipboard

Encrypted realm example

Open w0aw opened this issue 1 year ago • 2 comments

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

w0aw avatar Jun 12 '23 01:06 w0aw

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.

desistefanova avatar Jun 12 '23 05:06 desistefanova

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.

w0aw avatar Jun 12 '23 05:06 w0aw